started on 1-13
[KandRexercises.git] / getcharvals.c
blob7ea170a7c66ea6ed38a7aa40bb5ecee93d9cbd24
1 #include <stdio.h>
3 main() {
4 /* exercise 1-6: verify value of getchar() != EOF */
5 printf("%d\n", (getchar() != EOF));
7 /* exercise 1-7: print value of EOF */
8 printf("EOF = %d\n", EOF);