You don't have an else condition in that code. Also, not equals is written `!='. What you have won't work.
int main(void)
{
int c;
if((c=getchar())!=EOF)
printf("processed character...
Type: Posts; User: c99tutorial
You don't have an else condition in that code. Also, not equals is written `!='. What you have won't work.
int main(void)
{
int c;
if((c=getchar())!=EOF)
printf("processed character...
Did you read the post by Salem? Look at the bottom part about signalling EOF from the keyboard.