GATEverse Practice, past papers & mock tests
GATE 2008
Programming & Data StructuresProgrammingmediumMCQ2 marks
Choose the correct option to fill ?1 and ?2 so that the program below prints an input string in reverse order. Assume that the input string is terminated by a newline character.
c
void reverse(void) {
    int c;
    if (?1) reverse();
    ?2
}
main() {
    printf("Enter Text");
    printf("\n");
    reverse();
    printf("\n");
}
Save your progress

Related Programming & Data Structures PYQs