04 Try it yourself Interactive

Fill the memory table, then watch it lie

The first mode runs the swap program from section 03 one line at a time. Each step writes exactly one box, and the table below shows every variable that exists so far, its type, and what is in it. The second mode runs three tiny programs that produce a wrong number with no error attached — the wrong value appears first, then the fix. Nothing moves until you press Next.

Program run
one line per step
Two whole numbers from 0 to 99, separated by a comma.
Press Next to begin. Each press runs one line.


      
Line
Boxes0
Writes0
Overwrites0
step 0 / 0