我想测试结束符的值 请问该如何编写代码
我已经编写了输出的 向高手请教#include <stdio.h>
#define lower 0
#define step 20
#define upper 300
main()
{
int farh;
char c;
printf("wendubiao\n");
for (farh=upper;farh>=lower;farh=farh-step)
printf("%3d %6.1f\n",farh,(5.0/9.0)*(farh-32));
c=getchar();
while (c!=EOF){
putchar(c);
c=getchar();
}
printf("c=EOF");
}