K&R Exercises

Exercise 1-6: Verify getchar() != EOF

Verify that the expression getchar() != EOF is 0 or 1.

Print the value of getchar() != EOF on its own line each time you evaluate it, stopping after the first 0.

Test Cases

· space→ tab↵ newline

Submissions

No submissions yet