Vidyalelo
C Programming · Q115

File Input Output

Programming · C Programming · question 115

Q115

What will be the output of the following C code? #include int main() FILE *fp = stdout; stderr = fp; fprintf(stderr, "%s", "hello");

A.
Compilation error
B.
hello
Answer
C.
Undefined behaviour
D.
Depends on the standard

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board