GATEverse
← GATE CSE 2008

Q61

MCQ2 marks, −0.5

Choose the correct option to fill ?1?1 and ?2?2 so that the program below prints an input string in reverse order. Assume that the input string is terminated by a new line character. void reverse(void) { int c; if(?1) reverse(); ?2 } main() { printf("Enter text"); printf("\n"); reverse(); printf("\n"); }

Sign in to save attempts.

Loading…