Login
Remember
Register
Ask a Question
What are stack and heap areas?
0
votes
asked
Jan 11, 2024
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, 2024
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.
...