]> zdv2.bktei.com Git - BK-2023-05.git/blob - src/kr_exercises/ch1/s1.5/print_eof_value.c
update(src/kr):Complete exercise 1-7: print eof value
[BK-2023-05.git] / src / kr_exercises / ch1 / s1.5 / print_eof_value.c
1 /* Desc: Prints value of EOF
2 * Usage: name=print_eof_value; gcc -o "$name" "$name".c; ./"$name";
3 * Ref/Attrib: [0]: The C Programming Language, 2nd Edition, Section 1.5.1
4 */
5
6 /* Exercise 1-7 Prints the value of EOF specified by stdio.h
7 */
8 #include <stdio.h>
9
10 int main(){
11 int output;
12 output = EOF;
13 printf("EOF value:%d", output);
14 return 0;
15 };
16
17 /* Author: Steven Baltakatei Sandoval
18 * License: GPLv3+
19 */