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 difference between variable and property in c#?

630


Contrast between an interface and abstract class?

741


Why can’t struct be used instead of class for storing entity?

704


write a program to find the biggest palindrome in the given string

742


Explain what are the steps for creating clr trigger?

653


What is difference between list and ilist in c#?

638


My switch statement works differently! Why?

696


What is bitwise operator in c#?

678


Define interface class in c#?

685


Is string primitive?

659


What are custom exceptions in C#?

797


Can datetime be null c#?

649


What do you mean by directing?

672


What is an int c#?

638


What is “using” statement in c#?

662