Skip to content

Pointer Type

IsaacShelton edited this page Mar 21, 2022 · 1 revision

Pointer Type

Pointer types are prefixed with an *.

*Type

Since * is a type modifier, it can be repeated or combined with other type modifiers:

**Type
*100 int
16 16 *int

Usage of Pointers

To operate on pointer values, the following operators are used:

  • & to obtain a memory address
  • * to dereference a pointer
  • . to access a field
Clone this wiki locally