ungetc() can be used only with getc().

Category: Questionsungetc() can be used only with getc().
Editor">Editor Staff asked 11 months ago

ungetc() can be used only with getc().
 
(a) true
 
(b) false
 
(c) depends on the standard
 
(d) depends on the platform
 
I have been asked this question in an internship interview.
 
This interesting question is from Ungetc topic in section Input and Output in C of C
NCERT Solutions for Subject Computer science (C Programming) Select the correct answer from above options 
Interview Questions and Answers, Database Interview Questions and Answers for Freshers and Experience

1 Answers
Editor">Editor Staff answered 11 months ago

Correct answer is (b) false
 
Easy explanation – None.