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

Answer Posted / pankaj

value types------int,float,char
reference type----Array,class

value types stored in stack while reference type stored in heap.
in reference type address f variables are stored

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you prevent a class from being instantiated?

596


What do you know about device context?

521


What are the steps for creating clr trigger

569


What is multidimensional array in c#?

466


Is it possible to nest cfml conditional tags?

542






Okay, so an int is a value type, and a class is a reference type. How can int be derived from object?

550


what is a enumeration in c#

574


Why we use dll in c#?

549


What is data reader in c#?

600


What is tryparse?

519


Can we assign null value to integer?

457


How to find type of variable?

545


What is dynamic object in c#?

529


What are classes in c#?

581


What is thread pooling?

533