Pointers in C - C Pointers
Learn C - C tutorial - c pointers - C examples - C programs
Pointers
- A pointer is a variable which contains the address in memory of another variable. We can have a pointer to any variable type.
- The unary or monadic operator & gives the “address of a variable”.
- A pointer references a location in memory, and the value stored at that location is known as dereferencing a pointer.
- The indirection or dereference operator * gives the “contents of an object pointed to by a pointer”.
Syntax
Learn C - C tutorial - c pointers - C examples - C programs