Home » C Programming » File I/O » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    int main()
    {
    FILE *fp = stdout;
    int num;
    fprintf(fp, "%d\n ", 200);
    fprintf(stderr, "%d", 300);
    return 0;
    }
    1. Compilation Error
    2. 200
    3. 300
    4. 300
      200
    5. 200
      300
Correct Option: E

200
300



Your comments will be displayed only after manual approval.