Home » C Programming » File I/O » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    #include <stdlib.h>
    int main()
    {
    FILE *fp = stdout;
    int num;
    fprintf(fp, "%d", 102);
    }
    1. Nothing
    2. Compilation Error
    3. Garbage value
    4. 102
    5. None of these
Correct Option: D

102



Your comments will be displayed only after manual approval.