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

Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.

My Personal Notes arrow_drop_up