Suppose this while
loop:
while ((c = getchar()) != EOF)
^^^^^^^^^^^^^
assignment
As you can see we're going to compare an assignment to EOF
, how it could be happened? As far as I know, assignment doesn't return any value so you can't compare an assignment (right?)