Examveda

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

A. Compilation error

B. 45

C. Nothing

D. Depends on the standard

Answer: Option B


This Question Belongs to C Program >> File Input Output

Join The Discussion

Related Questions on File Input Output