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);
}

A. U on the screen
B. Undefined behaviour
C. Compilation Error
D. U in the myfile file
E. None of these
Answer» B. Undefined behaviour


Discussion

No Comment Found

Related MCQs