Added exercise 1-7
authorCian Bagshaw <cian@cianb.xyz>
Sun, 4 Dec 2022 12:44:45 +0000 (12:44 +0000)
committerCian Bagshaw <cian@cianb.xyz>
Sun, 4 Dec 2022 12:44:45 +0000 (12:44 +0000)
1/7.c [new file with mode: 0644]

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);
+}