1. 要求: 编写一个打印EOF值的程序

2. 分析

1. 查询得到EOF的值是-1, 帮用%d即可打印出来

3. 代码

#include<stdio.h>
int main(){
    printf("EOF is %d\n", EOF);
    return 0;
}