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 abstraction in c++ with example?

813


What are libraries in c++?

827


What are its advantages and disadvantages of multiple inheritances (virtual inheritance)?

900


Explain the difference between class and struct in c++?

837


Which is not a valid keyword a) public b) protected c) guarded

1026


Explain the scope of resolution operator.

880


What is flush programming?

795


Why c++ is so important?

845


What is #include cstdlib in c++?

935


What are the benefits of c++?

817


What do you know about near, far and huge pointer?

823


What character terminates all character array strings a) b) . c) END

1012


What are inline functions? What is the syntax for defining an inline function?

854


What are exceptions c++?

817


Mention the ways in which parameterized can be invoked. Give an example of each.

828