Left off at exercise 1-8
This commit is contained in:
1 parent
0d53df1c65
commit
c3c85aae8e
2 files changed
+32
No files matched your search
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
*
|
||||
* Exercise 1-6. Verify that the expression getchar() != EOF is 0 or 1
|
||||
*
|
||||
* Author: Kun Deng
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
|
||||
int main()
|
||||
{
|
||||
printf("expression getchar() != EOF is %d\n", (getchar() != EOF));
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
*
|
||||
* Exercise 1-7. Write a program to print the value of EOF.
|
||||
*
|
||||
* Author: Kun Deng
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
|
||||
int main()
|
||||
{
|
||||
printf("The value of the symbolic constant EOF is %d\n", EOF);
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in new issue
Block a user