0 0 votes https://gateoverflow.in/204076/gate2018-2 Why the answer is A,Why not D? Programming in C usergate2018 usermod + – himgta 840 views answer comment Share Follow Print See all 5 Comments 5 5 Comments reply Shaik Masthan commented Sep 4, 2018 reply Follow flag in option D, they are single quoted...... in the output we never get single quotes automatically. 0 0 replyShare himgta commented Sep 4, 2018 reply Follow flag for outputting option D,how the code should be changed? 0 0 replyShare Shaik Masthan commented Sep 4, 2018 reply Follow flag how the code should be changed printf(" '%c', '%c'", *((char*)q+1), *((char*)q+2)); 1 1 replyShare Rishav Kumar Singh commented Sep 4, 2018 reply Follow flag @himgta I don't know why do you want this output, By the way printf("\'%c\', \'%c\'", Will print your desired output 1 1 replyShare himgta commented Sep 4, 2018 reply Follow flag got it...thanks! 0 0 replyShare Please log in or register to add a comment.