2、关于EOF的两个小验证

#include <stdio.h>
#include <stdlib.h>

int main()
{
    printf("getchar() != EOF的对应值:%d
", getchar()!=EOF);
    printf("EOF本身的值:%d
", EOF);

    return 0;
}

  

原文地址:https://www.cnblogs.com/Gozz/p/7764168.html