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
started on 1-13
[KandRexercises.git]
/
getcharvals.c
blob
7ea170a7c66ea6ed38a7aa40bb5ecee93d9cbd24
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
(
"EOF = %d
\n
"
,
EOF
);
9
}