September 1998
Intermediate to advanced
848 pages
20h 13m
English
Reading about C isn't enough. You should try writing one or two simple programs to see if writing a program goes as smoothly as it looks in this chapter. Here are a few suggestions, but you should also try to think up some problems yourself.
Write a program that uses one printf() call to print your first name and last name on one line, uses a second printf() call to print your first and last name on two separate lines, and uses a pair of printf() calls to print your first and last name on one line. The output should look like this (but using your name):
| Mae West | First print statement |
| Mae | Second print statement |
| West | Still the second print statement |
| Mae West | Third and fourth print statements |
Write a program to print your name and address. ...
Read now
Unlock full access