Question 1
In C memory layout, where are static local variables and automatic local variables stored respectively?
Detailed Solution
Static local variables reside in the static data segment for the program's entire execution lifetime, whereas automatic local variables are dynamically allocated on the function activation stack frame.