Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Exercsise 1-6. Verify that the expression getchar() != EOF is 0 or 1.
- */
- #include <stdio.h>
- main() {
- int c;
- while (c = getchar() != EOF)
- printf("c = %d\n", c);
- printf("c = %d\n", c);
- }
Advertisement
Add Comment
Please, Sign In to add comment