Skip to content

Indexing Operators

Paul Squires edited this page Sep 19, 2026 · 1 revision

Home › Operators › Indexing Operators

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.

Operator () (Array Index)

Returns a reference to an element in an array.

Operator [] (String Index)

Returns a reference to the numeric value of a character in a string.

Operator [] (Pointer Index)

Returns a reference to memory offset from a base address.


Category: Operators


Reproduced from the FreeBASIC Wiki Manual under the GNU Free Documentation License 1.3 — with no Invariant Sections, no Front-Cover Texts and no Back-Cover Texts. Copyright © the FreeBASIC project and wiki contributors. See License.

Clone this wiki locally