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 ", 105);
    fprintf(stderr, "%d ", 99);
    return 0;
    }
    1. Compilation Error
    2. 99 105
    3. 105 99
    4. Garbage value
    5. None of these
Correct Option: C

105 99



Your comments will be displayed only after manual approval.