What does the ungetc function return for the following C expression?
ungetc(c, fp);//where declarations are int c and FILE *fp
ungetc(c, fp);//where declarations are int c and FILE *fpA. 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

Join The Discussion