repo.or.cz
/
KandRexercises.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
finished 1-11
[KandRexercises.git]
/
getcharvals.c
blob
20fcd3131227ca9c9476a6326dd7cc2e41f96d6c
1
#include <stdio.h>
2
3
main
() {
4
/* exercise 1-6: verify value of getchar() != EOF */
5
printf
(
"%d
\n
"
, (
getchar
() !=
EOF
));
6
7
/* exercise 1-7: print value of EOF */
8
printf
(
"%d
\n
"
,
EOF
);
9
}