projects
/
cProgLang
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f56094
)
Added exercise 1-7
author
Cian Bagshaw
<cian@cianb.xyz>
Sun, 4 Dec 2022 12:44:45 +0000
(12:44 +0000)
committer
Cian Bagshaw
<cian@cianb.xyz>
Sun, 4 Dec 2022 12:44:45 +0000
(12:44 +0000)
1/7.c
[new file with mode: 0644]
patch
|
blob
diff --git a/1/7.c
b/1/7.c
new file mode 100644
(file)
index 0000000..
b941b6d
--- /dev/null
+++ b/
1/7.c
@@ -0,0
+1,12
@@
+/*
+ Exercise 1-7. Write a program to print the value of EOF.
+ ===
+
+ The program printed -1, the value of EOF.
+*/
+
+#include <stdio.h>
+
+int main () {
+ printf("%d\n", EOF);
+}