
Lesson 11-1: Check Prelab Exercises
Arrays | 261
Name __________________________________________ Date _______________________
Section _________________________________________
Exercise 1: Run program Arrays to check your answer. Was your answer correct? If not, do you
understand what you did wrong?
Exercise 2: C++ doesn’t define what happens if you store more values than there are places in the
array. Each system handles this issue differently. For example, on one system the program may
work correctly, while on another system the program may crash. The moral is: Don’t do it.
Exercise 3: Run program Charts to see the output. Was your diagram correct? ...