Pick out the correct statement with respect to the heap.

Pick out the correct statement with respect to the heap.
A. Local variables are stored on the heap
B. Static variables are stored on the heap
C. Heap is the data structure which is used to implement recursive function calls
D. Everything on the heap is anonymous
 
Answer: a
Explanation: Local variables are stored on the stack. Static variables are stored in the permanent storage area. Stack is the data structure used to implement recursive function calls. Hence, it is true that everything on heap s anonymous.
 

Tìm kiếm

Back
Top