JMarshall
asked on
Conversion
How do I trap the value of EOF?
main()
{
int c;
c=getchar();
while(c != EOF)
putchar(c);
c=getchar();
}
}
main()
{
int c;
c=getchar();
while(c != EOF)
putchar(c);
c=getchar();
}
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER