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