aboutsummaryrefslogtreecommitdiff
path: root/ch1/1-07_eof-value.c
blob: aaf838b5faecc8d03c3feceea80304992e206aa5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <stdio.h>

/* The C Programming Language, 2nd Edition
 *
 * Exercise 1-7: Write a program to print the value of EOF.
 *
 * Answer: Just cast it to an integer placeholder in printf().
 */

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