Home » C Programming » Input & Output » Question
  1. What will be the output of the following C code if following commands are used to run(considering Newfile exists)?
    gcc -otest test.c
    ./test < Newfile

    #include <stdio.h>
    int main()
    {
    char ch = 'U';
    putchar(ch);
    }
    1. U on the screen
    2. Undefined behaviour
    3. Compilation Error
    4. U in the myfile file
    5. None of these
Correct Option: A

U on the screen



Your comments will be displayed only after manual approval.