Vidyalelo
C Programming · Q173

File Input Output

Programming · C Programming · question 173

Q173

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);
Answer
C.
ungetc(fp, c);
D.
ungetc(*fp,c);

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board