What is stack and heap?

Answer Posted / pushparaj pentakota(anakapalli

stack can store value type and reference type also but at compile time only but heap can store objects at run-time.stack can't store objects bcz stack at run-time can't increse their memory size it's fixed length.objects need extra memory sometimes so objects allocate memory in heap context.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of convert toint32 in c#?

742


What are the string functions in c#?

768


How do I link two windows forms in c#?

688


What is out int in c#?

691


What is default access specifier for class in c#?

709


Why do we use threads in c#?

770


What is regex replace in c#?

743


What is difference between hashtable and dictionary in c#?

739


Describe the process of “exception handling implementation” in c#?

769


What does firstordefault mean in c#?

752


What is a verbatim string literal and why do we use it?

741


How to use exception handling in stored procedure?

791


When is a class declared as a class abstract?

775


Can you explain template pattern?

775


What are delegates in C#?

791