GATEverse
← GATE CSE 2024 Set 1

Q9

MCQ1 mark, −0.33

Consider the following C\mathrm{C} program: #include <stdio.h> void fX (); int main(){ fX(); return 0 }; void fX () { char a; if ((a=g e t c h a r()) ! = '\n') fX(); if (a ! = '\n') putchar (a); } Assume that the input to the program from the command line is 12341234 followed by a newline character. Which one of the following statements is CORRECT?

Sign in to save attempts.

Loading…