program get character and store it to () then store to grade
but, what about EOF ?? End of File ? normally has value -1?
what is that? and for what?
Why the program use != EOF ?
please help me
The expression grade = getchar() returns the value of grade, after the assignment.
We then compare it to EOF, to find out whether we have reached the end of the file. If stdin is connected to a keyboard, EOF can be signaled (on unix) with ctrl-D.