Tuesday, 27 August 2013

c programe to know the end of the file

#include<stdio.h>
#include<conio.h>

int main()
{
    char ch;
    int i;
   
    //i=getchar();
   
   /* while(i!=EOF)
    {
                  putchar(i);
                  i=getchar();
                  }*/
                 
                  printf("%d",EOF);
                 
                  getch();
                  return 0;
                 
                  }

No comments:

Post a Comment