Advertisement
samir82show

c_ch01_ex06.c

Sep 22nd, 2014
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. /*Exercsise 1-6. Verify that the expression getchar() != EOF is 0 or 1.*/
  2.  
  3. #include <stdio.h>
  4. int main()
  5. {
  6. int c;
  7. while ((c = getchar()) != EOF);
  8. printf ("c = %d\n", c);
  9. return 0;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement