FOLLOW THE LOGIC

Watch a program think

Step through curated C programs and see how variables, decisions, and output change.

A running total

Ready to begin
main.cC
#include <stdio.h>
int main(void) {
int sum = 0;
for (int i = 1; i <= 3; i++) {
sum = sum + i;
}
printf("%d", sum);
return 0;
}
VARIABLE WATCH

Start the trace to watch values appear here.

PROGRAM OUTPUT
No output yet
WHAT JUST HAPPENED?

Execution begins in main. Press Start tracing to execute the first statement.

This visualizer follows prepared, accurate execution steps. It does not run arbitrary C code.

Built for curious minds. No prior coding experience needed.C Logic Lab Learn. Trace. Build.