You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
StepControls now handles action-based steps (init/malloc/free/done) for
heap and conceptual exercises, and no longer requires a StackSim to be
present. Sidebar strips number prefix from titles since it already
displays the exercise number from the ID. Updated c-06 to explain
stack vs heap difference directly.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: src/exercises/unit-intro-c/c-06.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ const c06: Exercise = {
25
25
steps: [
26
26
{
27
27
action: 'init',
28
-
log: ['info','So far we have seen local variables on the stack. But sometimes you need memory that outlives the current function, or whose size you do not know at compile time. That is what the heap is for.'],
28
+
log: ['info','The stack holds local variables that are automatically created and destroyed with each function call. The heap is a separate memory region for dynamic allocation -- memory you request at runtime with malloc() and release with free(). Stack memory is fast but limited and temporary; heap memory is flexible but you must manage it yourself.'],
0 commit comments