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

How do you sort a list in c#?

659


Why do we use generics in c#?

750


Why do we use namespace in c#?

712


What is the usage of transponders?

726


What is a cshtml file?

711


What does async mean in c#?

733


What is the components of window?

688


What is difference between dictionary and list in c#?

687


How do I make a dll in c#?

698


What is desktop application testing?

701


What is the main method in c#?

743


Which is better javascript or c#?

689


What is the diff between the System.Array.CopyTo() and System.Array.Clone()?

784


Name some properties of thread class.

780


What is meant by clr?

766