The C Programming Language

Chapter 1 - A Tutorial Introduction 7

mmresult 2009. 3. 25. 17:25


Answer to Exercise 1-7, page 17
Solution by Richard Heathfield
Write a program to print the value of EOF .

 

#include <stdio.h>

int main(void)
{
  printf("The value of EOF is %d\n\n", EOF);
 
  return 0;
}