Where are the automatic variables stored if another function is called in between the execution of the program?

Quốc Ân

New member
Where are the automatic variables stored if another function is called in between the execution of the program?
A. Heap
B. Queue
C. Stack
D. Temp variable
 
Answer: c
Explanation: All the automatic variables are stored in a new stack entry as soon as their scope is created. If another function is called, the present data is saved in stack and new entry in stack is made for the called function. When the function returns, the automatic variables are used again from where those were left.
 

Tìm kiếm

Back
Top