0 votes
in C Plus Plus by
What are stack and heap areas?

1 Answer

0 votes
by
  1. Heap Area:It is used for the objects allocated dynamically (Using malloc() and calloc()).
  2. 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.

Related questions

0 votes
asked Jan 12 in C Plus Plus by GeorgeBell
0 votes
asked Jan 9 in C Plus Plus by GeorgeBell
...