C | File Handling | Question 3

getc() returns EOF when
(A) End of files is reached
(B) When getc() fails to read a character
(C) Both of the above
(D) None of the above


Answer: (C)

Explanation: See EOF, getc() and feof() in C

Quiz of this Question



My Personal Notes arrow_drop_up