A pointer holds an address. &x is the address of x. *p is the value at that address.
A pointer is a variable that holds an address — the location of another variable. &x is “where x lives.” *p is “open that address and read (or write) the value.”
int box
arrow
10
10
Each step highlights the matching C line. Program output appears only when a line that prints actually runs.
Five questions. Pick one answer each, then Check answers. The correct choice turns green.
1. &x means:
Address-of.
2. *p when p = &x is:
Dereference.
3. Changing *p:
Same box.
4. A pointer that points nowhere should be:
NULL.
5. int *p declares:
Pointer to int.