2
Answers

Why structures are allocated in stack?

Krishnaraj

Krishnaraj

19y
4.3k
1
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)