ExamVeda
Login
Home
This question belongs to C Program File Input Output
File Input Output
?

What is the output of the following C code if there is no error in stream fp?
#include <stdio.h>
int main()
{
    FILE *fp;
    fp = fopen("newfile", "w");
    printf("%d\n", ferror(fp));
    return 0;
}

Answer & Solution
Correct Answer: Option B
Let's discuss the solution. Join the discussion
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.