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

How can I process command-line arguments?

537


What is parameters in c#?

516


What is the purpose of dictionary in c#?

472


Why do we need serialization?

450


What is the adv of using System.Text.StringBuilder over System.String?

545






What are All kind of access specifiers for a class and for methods

568


What is regex replace in c#?

525


What is a constructor in c#?

527


Explain the concepts of cts and cls(common language specification).

516


Is java better than c sharp?

521


In object oriented programming, how would you describe encapsulation in c#?

548


What is type cast in C#?

577


What is access specifier in c#?

575


What are sessions in c#?

504


What is a string in c#?

490