Read character and print until the end of file EOF
Here the program to copy or read by getchar() function And the words or character print it by putchar() function
#include
#include
int main()
{
char a;
while((a=getchar()) != EOF)
putchar(a);
getch();
return 0;
}
See the out put
No comments:
Post a Comment