-
What does the ungetc function return for the following C expression?
ungetc(c, fp);//where declarations are int c and FILE *fp
-
- Either returns character c or returns EOF for an error
- It returns EOF for an error
- It returns character c
- Both returns EOF for an error and returns character c
- None of these
Correct Option: A
Either returns character c or returns EOF for an error