
Lesson 11-5: Multidimensional Arrays
Arrays | 269
Name __________________________________________ Date _______________________
Section _________________________________________
Exercise 1: Write a void function, SetThreeDi, that sets all the cells in a three-dimensional array
to a value that is passed as a parameter. You may access the dimension sizes nonlocally.
Exercise 2: Write a void function, PrintThreeDi, that prints the values in the three-dimensional
array.
Exercise 3: Write a driver that defines a three-dimensional array, declares a variable of that kind,
passes it to function ThreeDi to set the array to all zeros, and passes it to PrintThreeDi ...