GATE CSE 2008 Q || C PROGRAMMING ||Data Structure || GATE Insights Version: CSE

Опубликовано: 28 Сентябрь 2024
на канале: GATE Insights Version: CSE
190
3

Planning to take coaching on https://unacademy.com/
here is a code for 10% off PLUS1BPK1

Downloads resources from here
https://education4fun.com/gate-cse/

MCQ (Single Correct Answer)
GATE CSE 2008
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.
A) ?1 is (getchar ( )! = '\ n’) ?2 is getchar (c);
B) ?1 is ((c = getchar ( ) )! = '\ n’) ?2 is getchar (c);
C) ?1 is (c ! = '\ n’) ?2 is putchar (c);
D) ?1 is ((c = getchar ( ) )! = '\ n’) ?2 is putchar (c);