Indexing Operators
Operators that return references based on an index
The indexing operators return references to some memory based on the value of their second, or right-hand side, operand. This operand is used as an index, or offset, from the beginning of some memory represented by the first, or left-hand side, operand.
The indexing operators return references to some memory based on the value of their second, or right-hand side, operand. This operand is used as an index, or offset, from the beginning of some memory represented by the first, or left-hand side, operand.
Operator () (Array Index) Returns a reference to an element in an array. Operator [] (String Index)Returns a reference to a character in a string. | Operator [] (Pointer Index) Returns a reference to memory offset from a base address. |