Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Engineering LibreTexts

3.2: Bounds

( \newcommand{\kernel}{\mathrm{null}\,}\)

The array index consists of a range of values with a lower bound and an upper bound.

In some programming languages only the upper bound can be chosen while the lower bound is fixed to be either 0 (C, C++, C#, Java) or 1 (FORTRAN 66, R).

In other programming languages (Ada, PL/I, Pascal) both the upper and lower bound can be freely chosen (even negative).


This page titled 3.2: Bounds is shared under a CC BY-SA 4.0 license and was authored, remixed, and/or curated by Wikibooks - Data Structures (Wikipedia) .

  • Was this article helpful?

Support Center

How can we help?