Search:

Type: Posts; User: c99tutorial

Search: Search took 0.05 seconds.

  1. Replies
    8
    Views
    1,639

    You don't have an else condition in that code....

    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...
  2. Replies
    8
    Views
    1,639

    Did you read the post by Salem? Look at the...

    Did you read the post by Salem? Look at the bottom part about signalling EOF from the keyboard.
Results 1 to 2 of 2