Syntax rewrite, more docs
[tcpl.git] / ch1 / 07.c
blob0a7dc6fe6789600acb463590073150f4184bfd9f
1 /*
2 * Exercise 1-7:
3 * Write a program to print the value of EOF.
4 */
6 #include <stdlib.h>
7 #include <stdio.h>
9 int
10 main(void)
12 // EOF is actually a macro to an integer, as defined in stdio.h.
13 printf("The value of EOF is %i.\n", EOF);
15 return EXIT_SUCCESS;