Chapter 8
The statement putchar(getchar()); causes the program to read the next input character and to print it; the return value from getchar() is the argument to putchar(). No, getchar(putchar()) is invalid because getchar() doesn't use an argument and putchar() needs one.
Display the H character.
Sound the alert if the system uses ASCII.
Move the cursor to the beginning of the next line.
Backspace.
count <essay >essayct or else count >essayct <essay
Just c. is valid.
It's a signal (a special value) returned by getchar() and scanf() to indicate that they have detected the end of a file.
The output is as follows:
If you qu
Note that the character I is distinct from the character i. Also note that the i is not printed because the loop quits upon detecting ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access