c语言中的EOf是什么意思

#include<stdio.h>
main(){
int c;
while(c=getchar()!=EOF){
printf("%d\n",c);
printf("%d-at EOF\n",c);}
}

为什么当输入y的时候输出为两次的
1
1-at EOF呢
还有为什么返回的是1呢

第1个回答  2013-05-06
end of file
文件尾的意思