Chapter 7
1: | Determine which expressions are true and which are false.
|
A1: | True: b. |
2: | Construct an expression to express the following conditions:
|
A2: |
|
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 */ /* ... |
Get C Primer Plus, Fourth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.