|
|
|
Chapter 4Answers to Selected Exercises
2. [was #2] Not in C89. Suppose that 9. [was #6] (a)63 8
(b) 3 2 1
(c) 2 -1 3
(d) 0 0 0
13. [was #8] The expression Answers to Selected Programming Projects2. [was #4] #include <stdio.h> int main(void) { int n; printf("Enter a three-digit number: "); scanf("%d", &n); printf("The reversal is: %d%d%d\n", n % 10, (n / 10) % 10, n / 100); return 0; } Copyright © 2008, 1996 W. W. Norton & Company, Inc. All rights reserved. |