Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (9 sloc) 185 Bytes
/*
* Exercise 1-6
* Verify that the expression getchar() != EOF is 0 or 1.
*/
#include <stdio.h>
main() {
int c = getchar();
printf("getchar() != EOF? %d\n", c != EOF);
}