Qus : Which part of the memory does the system store the parameter and local variables of a function call ?
Qusमेमोरी का कौन सा भाग सिस्टम फ़ंक्शन कॉल के पैरामीटर और स्थानीय चर को संग्रहीत करता है?
A. Heap B. Stack
C. Uninitialized data segment D. None of the above
Solution
B. Stack
Explanation
The local variables and the parameters are always stored in stack segment whereas the references are created at heap segments.