Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1: /* 05L01.c: Reading input by calling getc() */
- 2: #include <stdio.h>
- 3:
- 4: main()
- 5: {
- 6: int ch;
- 7:
- 8: printf("Please type in one character:\n");
- 9: ch = getc( stdin );
- 10: printf("The character you just entered is: %c\n", ch);
- 11: return 0;
- 12: }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement