September 1998
Intermediate to advanced
848 pages
20h 13m
English
Which data type would you use for each of the following kinds of data?
The population of Rio Frito.
The average weight of a Rembrandt painting.
The most common letter in this chapter.
The number of times that the letter occurs in this chapter.
Why would you use a type long variable instead of type int?
Identify the type and meaning, if any, of each of the following constants:
'\b'
1066
99.44
0XAA
2.0e30
Virgila Ann Xenopod has concocted an error-laden program. Help her find the mistakes.
include <stdio.h> main ( float g; h; float tax, rate; g = e21; tax = rate*g; )
Identify the data type (as used in declaration statements) and the printf() format specifier for each of the following constants:
| Constant | Type | Specifier |
|---|---|---|
| a. 12 |
Read now
Unlock full access