🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.In the data segment
  2. B.On the stack, in the frame of the function that is running
  3. C.On the heap
  4. 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 →