Click here to Skip to main content
15,922,407 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi friends,

In .NET the base class is system.objects from these all class can be derived. According to my scenario, if I take an variable and assign the value to that, then actually the value is stored on heap memory but why it can be stored on stack memory...

Please reply.
Posted
Updated 18-May-10 11:07am
v2

This MSDN discussion[^] may answer your question.
 
Share this answer
 
hi friend,

see one example
we take some int i; this i value is stored in stack memory and
string s; this s memory is allocated in stack.
if we memory allocated using we create an object this time only memory allocated in Heap.

I think u understand.

Thanks.
 
Share this answer
 
v2
Hello,
Please help yourself
Stach & Heap Memory Basic funda

Thanks & Regards
Radix :rose:
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900