Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
What are stack and heap areas?
Home
C Plus Plus
What are stack and heap areas?
asked
Jan 11
in
C Plus Plus
by
GeorgeBell
What are stack and heap areas?
c-interview-questions-answers
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jan 11
by
GeorgeBell
Heap Area:
It is used for the objects allocated dynamically (Using malloc() and calloc()).
Stack Area:
It is used to store local variables and arguments of a method. This stays in memory only till the termination of that particular method.
...