2
Reply

Why structures are allocated in stack?

Krishnaraj

Krishnaraj

Sep 12 2005 11:25 AM
4.3k
Hi,

 Just started learning C#. Trying to figure out the difference between structure and classes in C#. 
Most of the documents say that structures are allocated in stack. Is it true? Is there any specific reason 
for doing so?

Please clarify

Thanks in advance.

Answers (2)