What will be the output of the following C code?
#include <stdio.h>
#include <stdlib.h>
int main()
{
FILE *fp = stdout;
int n;
fprintf(fp, "%d", 45);
}
#include <stdio.h>
#include <stdlib.h>
int main()
{
FILE *fp = stdout;
int n;
fprintf(fp, "%d", 45);
}
A. Compilation error
B. 45
C. Nothing
D. Depends on the standard
Answer: Option B
Join The Discussion