← Quiz: Storage Classes in C: all 15 questions
Quiz: Storage Classes in C · Question 15 of 15
Where are ordinary auto local variables stored?
Where are ordinary auto local variables stored?
- A.In the data segment
- B.On the stack, in the frame of the function that is running
- C.On the heap
- D.In the CPU cache only
Answer & explanation
Correct answer: On the stack, in the frame of the function that is running
Each call gets a new stack frame for its locals, which is removed when the call returns.
Can you get the rest right without peeking?
Take the timed Quiz: Storage Classes in C quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →