Value of EOF in c programming language
Learn C - C tutorial - value of eof in c programming language. - C examples - C programs
Value of EOF in c programming language.
- End-of-File is a condition in operating system.
- No data can be read from a data source after declaring EOF.
- The data source is usually called a file or stream.
Sample Code
#include <stdio.h>
int main()
{
printf("Value of \"EOF\" is = %d\n",EOF);
return 0;
}
Output
Value of "EOF" is = -1