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

What is default c#?

722


What is collection class c#?

707


Can you have an array of arrays?

723


What is dependency injection in simple words?

713


What is the difference between throw and throw ex?

663


What is a Command Object in C#?

748


Why data types are important?

723


What's the difference between the debug class and trace class? Documentation looks the same.

742


Is c# and .net same?

668


What is variable in c#?

742


What does public mean in c#?

719


Where test director stores its data ? Database ,Local file etc...? I need to read this data from Visual Studio 2005 c# client. Regards

1679


What is the class in c#?

682


What is CLR and its application.?

767


Overloaded constructor will call default constructor internally?

806