September 2001
Beginner
970 pages
23h 20m
English
You'll find answers to the review questions in Appendix A, “Answers to the Review Questions.”
| 1: | Determine which expressions are true and which are false.
|
| 2: | Construct an expression to express the following conditions:
|
| 3: | The following program has unnecessarily complex relational expressions as well as some outright errors. Simplify and correct it.
#include <stdio.h> int main(void) /* 1 */ { /* 2 */ int weight, height; /* weight in lbs, height in inches */ /* 4 */ scanf("%d, weight, height); /* 5 */ if (weight < 100) /* 6 */ if ... |
Read now
Unlock full access