8.16. Pointer Type Operators

Pointer type operators are used only in unsafe mode (see Chapter 7). The operators have the following meaning:

  • * operator: This operator is used to define pointer types and dereference pointer types.

  • & operator: This unary operator returns the address of its operand.

  • -> operator: The -> operator combines pointer dereferencing and member access.

  • [] operator: You can use square brackets to index off a pointer.

Get .NET for Java Developers: Migrating to C# now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.