What is the difference between stack and heap memory?

Answer Posted / nashiinformaticssolutions

o Stack: Memory is allocated and deallocated automatically.
o Heap: Memory is allocated dynamically using new or malloc.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an operator in c++?

810


What are the advantages of using const reference arguments in a function?

853


Am pass the 10000 records to target in target I will take commit interval 15000 when I was stop the work flow what will happened

1347


What is the use of 'using' declaration in c++?

867


What are pointers, when declared, intialized to a) NULL b) Newly allocated memory c) Nothing. Its random

895


What are the syntactic rules to be avoid ambiguity in multiple inheritance?

916


What are the various storage classes in C++?

868


What is an accessor in c++?

835


Declare a class vehicle and make it an abstract data type.

735


How java is different from c and c++?

935


What is code reusability in c++?

930


What is c++ used for in games?

825


In which header file does one find isalpha() a) conio.h b) stdio.h c) ctype.h

972


what are the decision making statements in C++? Explain if statement with an example?

869


Which software is used for c++ programming?

834