what are value types and reference types? where they are stored?

Answer Posted / vaibhav

value type are variable of premitive data types like
int,float struct & refrence type are the instace of user
defied datatype like class,string, etc.
value type vatiable are stored on
stack ,refrence type variable are stored on heap.

Is This Answer Correct ?    13 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is int16?

516


What is the difference between select and selectmany?

438


What is type keyword in c#?

532


Can you put two constructor with the same structure in a class?

487


What is sealed class in c#?

524






Explain how do you debug an asp.net web application?

487


What is singleordefault?

517


Write down the c# syntax to catch an exception

527


How are Windows programs different from normal C-programs?

1677


How does bitwise xor work?

471


What is monitor in C#?

595


Why should you override the tostring() method?

598


What types of object can I throw as exceptions?

543


what is IEquatable

569


Why do we use inheritance in c#?

488