adplus-dvertising
frame-decoration

Question

Which of the following is the correct syntax for calling function ungetc?
(Assume int c and FILE *fp)

a.

ungetc(c,*fp);

b.

ungetc(c, fp);

c.

ungetc(fp, c);

d.

ungetc(*fp,c);

Posted under C Programming

Answer: (b).ungetc(c, fp);

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of the following is the correct syntax for calling function ungetc? (Assume int c and FILE *fp)