Home » C Programming » Error Handling » Question
  1. What will be the output of the following C statement?
    fprintf(stderr, "error: could not open filen");
    1. The diagnostic output is pipelined to the output file
    2. The program is immediately aborted
    3. The diagnostic output is directly displayed in the output
    4. The line which caused error is compiled again
    5. None of these
Correct Option: C

The diagnostic output is directly displayed in the output



Your comments will be displayed only after manual approval.