Examveda

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

A. It returns character c

B. It returns EOF for an error

C. Both returns character c and returns EOF for an error

D. Either returns character c or returns EOF for an error

Answer: Option D


This Question Belongs to C Program >> File Input Output

Join The Discussion

Related Questions on File Input Output