Array Subscript Operator
Go Up to Postfix Expression Operators Index
Brackets ([ ]) indicate single and multidimensional array subscripts. The expression
- <exp1>[exp2]
is defined as
- *((exp1) + (exp2))
where either:
exp1
is a pointer andexp2
is an integer orexp1
is an integer andexp2
is a pointer