What does EOF mean in C++?

What does EOF mean in C++?
Answer
End-of-File. It is a macro definition of type int that expands into a negative integral constant expression (generally, -1). It is used as the value returned by several functions in header <cstdio> to indicate that the End-of-File has been reached or to signal some other failure conditions.
 

Tìm kiếm

Back
Top