Skip to content
Codescope

C · C++ · Java · C# · DSA · Linux · Data

Watch your code
think.

Most tutorials describe what a pointer is. Here you step through one — watching the address change, the arrow move, and the value it lands on update, one instruction at a time.

329 concepts mapped · 65 interactive now · 450 steps · free

Stack

main()int *p = arr;
arr[0]
10
0x1000
arr[1]
20
0x1004
arr[2]
30
0x1008
arr[3]
40
0x100c
arr[4]
50
0x1010
pint *
0x1000
0x1020

*p is 10 — the pointer moved 0 bytes, not 0 bytes, because it points at ints.

Pointer p references arr[0], value 10.

01 / 05

this is a real lesson visualization, not a picture of one

One control, everywhere

Every concept page is a sequence of steps rather than an article. The explanation, the code and the diagram all advance together, so you never have to hold three things in your head at once.

  • 01

    Step, don't scroll

    Prev, next, and a scrub bar — the same debugger-style control under every visualization on the site.

  • 02

    Amber means live

    One accent colour, used for one thing: the line executing, the cell being written, the row being kept.

  • 03

    Real sizes, real behaviour

    Alignment gaps, capacity doubling, hash collisions, permission bits. The diagram matches what actually happens.

Tracks

Each track runs from first principles to intermediate, in the order that makes every concept easier than the last.