CP I/O Q39

0. Consider following statements:
putchar(getchar());
putchar(getchar());
If
a
b
is the input, then output will be

  • Option : B
  • Explanation :
    The input is actually a \n b. Since we are reading only two characters, only a and \n will be read and printed.
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *