C - The C Answer (2nd Edition) - Exercise 1-6

Posted zhchoutai

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了C - The C Answer (2nd Edition) - Exercise 1-6相关的知识,希望对你有一定的参考价值。

/*
Verify that the expression getchar() != EOF is 0 or 1.
*/

#include <stdio.h>

main()
{
    int c;
    
    while(c = getchar() != EOF)
    {
    	printf("%d\n", c);
    }
    printf("%d - at EOF\n", c);
}

以上是关于C - The C Answer (2nd Edition) - Exercise 1-6的主要内容,如果未能解决你的问题,请参考以下文章

C - The C Answer (2nd Edition) - Exercise 1-6

C - The C Answer (2nd Edition) - Exercise 1-8

hdu 2023wrong answer!

Title : Using Information Fragments to Answer the Questions Developers Ask

2nd 每周例行报告

poj1007老是出现wrong answer!!!