From 6bf2d579f75246f61172bb1e5e44ae484c8716d8 Mon Sep 17 00:00:00 2001 From: Cian Bagshaw Date: Sun, 4 Dec 2022 12:44:45 +0000 Subject: [PATCH] Added exercise 1-7 --- 1/7.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 1/7.c diff --git a/1/7.c b/1/7.c new file mode 100644 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 + +int main () { + printf("%d\n", EOF); +} -- 2.20.1