From: Cian Bagshaw Date: Sun, 4 Dec 2022 12:44:45 +0000 (+0000) Subject: Added exercise 1-7 X-Git-Url: https://tests.cianb.xyz/?a=commitdiff_plain;h=6bf2d579f75246f61172bb1e5e44ae484c8716d8;p=cProgLang Added exercise 1-7 --- 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); +}