X hits on this document

156 views

0 shares

0 downloads

0 comments

61 / 63

Copyright ©2004 Pearson Addison-Wesley. All rights reserved.

8-61

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

Document info
Document views156
Page views156
Page last viewedFri Dec 09 05:56:47 UTC 2016
Pages63
Paragraphs754
Words4119

Comments