1. Home
  2. Computing & Technology
  3. C / C++ / C#

Definition of Bounds Error

By David Bolton, About.com

Definition: In a data structure where an array is used, the array dimension's are bounded. There is a lower and an upper bound. For example
int values[10]
Defines a ten element int array. The lower bound is 0, the upper is 9. If you attempt to access an element outside of this range 0..9, then you have a bounds error.

Glossary:

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Examples:
Accessing element 10 of the array
int values[10]
is a bounds error.
Explore C / C++ / C#
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. C / C++ / C#

©2009 About.com, a part of The New York Times Company.

All rights reserved.