Starlit Daily

📚 › C

6. Pointers, the idea

A pointer stores a memory address. & gives the address of a variable, and * reads or changes the value at an address. Pointers are powerful and also a big source of bugs.

Show example

int x = 5;
int *p = &x; // p holds the address of x

← Back to course