Vidyalelo
C Programming · Q126

File Input Output

Programming · C Programming · question 126

Q126

What will be the output of the following C code? #include int main() FILE *fp = stdout; int n; fprintf(fp, "%d ", 45); fflush(stdout); fprintf(stderr, "%d", 65); return 0;

A.
45 65
Answer
B.
65 45
C.
45
D.
Compilation error

Answer: Option A

Solution

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