liveBook · Manning

Address-of operator

Also called address operator

The address-of operator is a unary operator that produces a pointer to the object or function designated by its operand.

How 2 Manning books explain it

Modern C

The address-of operator is the C unary operator that produces a pointer to its operand's object or function.

How it is used
Uses object addresses to let functions inspect or modify caller-owned objects through pointer parameters.
How deep it goes
Defines syntax, dereferencing, undefined behavior, and aliasing consequences through worked pointer examples.
Examples
Uses double_swap, address-passing calls, pointer dereferences, and a cyclic-shift exercise.
What you can do after
Apply it via pointer parameters to modify caller-owned objects, while avoiding null, indeterminate, and invalid aliasing cases.

Read how Modern C explains address-of operator →

Modern C, Third Edition

The address-of operator is the C unary operator that obtains a pointer to an object or function designated by its operand.

How it is used
Uses object addresses to let functions operate on caller-owned objects through pointer parameters.
How deep it goes
Explains unary syntax, pointer results, inverse dereferencing, * notation, and null or invalid-pointer failure.
Examples
Uses double_swap calls and pointer-parameter functions, then contrasts aliasing with blub(&c, &c).
What you can do after
Apply it to pass object addresses into pointer parameters and enable indirect modification.

Read how Modern C, Third Edition explains address-of operator →

Also covered in

What to know first

Related concepts

Questions about address-of operator

What is address-of operator?

The address-of operator is a unary operator that produces a pointer to the object or function designated by its operand.

Which Manning books explain address-of operator?

Modern C and Modern C, Third Edition.

What should I know before learning address-of operator?

Manning books that teach address-of operator usually introduce memory location, missing value, object and performance optimization first.

What is the difference between address-of operator and register keyword?

The address-of operator is a unary operator that produces a pointer to the object or function designated by its operand. The register keyword is a C storage-class specifier for automatic objects that may request register storage and restricts taking the object's address.

What is address-of operator a kind of?

Address-of operator is a kind of operator. An operator is a symbol, keyword, or language construct that specifies an operation on one or more operands.

What is address-of operator also called?

Address-of operator is also called address operator.

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.