liveBook · Manning

Pointer

A pointer is a value that refers to a memory location or another object, enabling indirect access to it.

How 2 Manning books explain it

Go in Action, Second Edition

A pointer type is a Go type whose values identify the memory locations of values of a specified target type.

How it is used
Uses pointers to share and modify values or avoid copying large structs and arrays.
How deep it goes
Explains typed pointers, nil, addressing, dereferencing, and construction, then applies them to function arguments without descending into memory management internals.
Examples
Uses an integer changed through dereferencing, struct initialization, and a large image array passed to a function.
What you can do after
Apply pointers in Go to modify original values and pass large arrays without copying their contents.

Read how Go in Action, Second Edition explains pointer →

.NET in Action, Second Edition

A pointer is a value that represents a memory address and can be used to access or manipulate the addressed storage.

How it is used
Connects heap access and runtime-sized allocation to a comparison of C++ pointers and C# arrays.
How deep it goes
Explains pointer access through stack frames and heap allocation, then shows unsafe C# pointer use without detailing pointer representation.
Examples
Uses a C++ function returning a dynamic array and a C# function copying arrays with pointers.
What you can do after
Build it from scratch: copy a C# array using pointers within `unsafe` and `fixed` blocks.

Read how .NET in Action, Second Edition explains pointer →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.