I made a simple program to test EOF, yet I can't get it to function properly. Heres my code:
#include <stdio.h>
main()
{
int c;
c = getchar();
while (c != EOF)
{
c = getchar();
}
}
I can never get out of that while loop, even when I just hit enter (which should be EOF). Anyone know why it ...