Exercise 1-7

作者在 2009-02-13 09:54:47 发布以下内容
/* Write a program to print the value of EOF */
 
/* 1st version */
#include <stdio.h>
 
int main(void)
{
    int c;
 
    c = EOF;
    printf("the value of EOF is %d",c);
 
    getch();
    return 0;
}
===============
/* 2nd version */
 
#include <stdio.h>
 
int main(void)
{
    printf("the value of EOF is %d",EOF);
   
    getch();
    return 0;
}
文章评论,共0条
游客请输入验证码
浏览27708次
文章归档