State the difference between heap memory and stack memory.

AnswerBot
8mo

Heap memory is dynamic memory allocated during runtime, while stack memory is static memory allocated at compile time.

  • Heap memory is used for dynamic memory allocation, while stack memory is used for ...read more

shubhakanta pradhan
7mo
Heap memory is used by all the parts of the application whereas stack memory is used only by one thread of execution.
Rashmi
9mo
The Stack memory is a sort of memory allocation that the OS continuously manages and uses to store local variables in a LIFO order. On the other hand, heap memory is a type of dynamic memory allocati...read more
Add answer anonymously...
Cognizant Voice Process Executive Interview Questions
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+

Reviews

4 L+

Interviews

4 Cr+

Salaries

1 Cr+

Users/Month

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter