Declare int x = 10 and print the value using a pointer, not x itself.
This lesson prints 10 by following a pointer, not by naming x in printf. You still create x, you point p at it, then you read *p. The value is 10; the address bits themselves stay hidden.
10
&x
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. This program prints:
Value via *p.
2. int *p = &x; makes p:
Stores address.
3. Printing p with %p would show:
Address bits.
4. If p were NULL, *p would be:
Do not deref NULL.
5. Another kind: p[0] when p points at x is:
Index 0.