Copyright ©2004 Pearson Addison-Wesley. All rights reserved.
Common Programming Errors
The most common error in using arrays is a subscript-range error.
An out-of-range reference occurs when the subscript value is outside the range specified by the array declaration.
In some situations, no run-time error message will be produced – the program will simply produce incorrect results.
Other times, you may get a runtime error like “segmentation fault” or “bus error”
Remember how to pass arrays to functions.
Remember that the first index of the array is 0