3 ms·
For a program without recursive calls the students can get away with believing that local variables are statically allocated, but for a program with recursive c
by infraruby 10y ago
For a program without recursive calls the students can get away with believing that local variables are statically allocated, but for a program with recursive calls the students must understand that local variables are allocated on the stack; that what appears (lexically) to be one variable in the source may be many variables at runtime!