Link to home
Start Free TrialLog in
Avatar of JMarshall
JMarshall

asked on

Conversion

How do I trap the value of EOF?

main()
{
int c;
c=getchar();
while(c != EOF)
putchar(c);
c=getchar();
}
}
Avatar of JMarshall
JMarshall

ASKER

Please rewrite code to print the Value of EOF!
ASKER CERTIFIED SOLUTION
Avatar of imladris
imladris
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial