RAD Studio
ContentsIndex
PreviousUpNext
Array Subscript Operator

Brackets ([ ]) indicate single and multidimensional array subscripts. The expression

<exp1>[exp2]

is defined as

*((exp1) + (exp2))

where either:

  • exp1 is a pointer and exp2 is an integer or
  • exp1 is an integer and exp2 is a pointer

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!