Sams Teach Yourself C in 21 Days

(singke) #1

  1. Write a program that initializes an array of 10 elements. Each element should be
    equal to its subscript. The program should then print each of the 10 elements.

  2. Modify the program from exercise 9. After printing the initialized values, the pro-
    gram should copy the values to a new array and add 10 to each value. The new
    array values should be printed.


194 Day 8

14 448201x-CH08 8/13/02 11:21 AM Page 194

Free download pdf