1.

What does the ungetc function return for the following C expression?
ungetc(c, fp);//where declarations are int c and FILE *fp

A. Either returns character c or returns EOF for an error
B. It returns EOF for an error
C. It returns character c
D. Both returns EOF for an error and returns character c
E. None of these
Answer» B. It returns EOF for an error


Discussion

No Comment Found

Related MCQs