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

Answer Posted / ctharam

Data Type are 2 Kinds. they are 1) Value Data Type 2) Reference Data Type.

1) Value Data Types are stored in Stack Memory Location( bool,byte,char,decimal,double,enum,float,int,long,struct,short and uint)


2) Reference Data Type are stored in Heap Memory Location(Class,Object,Array,Interface,Delegate and Dynamic).

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can we sort the elements of the array in descending order?

750


What is the difference between add and addrange in c#?

786


What is the difference between an integer and int?

710


What is iformatprovider in c#?

702


Why is it important to override gethashcode when equals method is overridden?

796


Explain About Postback

755


What is variable and its classification?

738


What is Implementation inheritance and interface inheritance?

722


How long does it take to get a loop recorder put in?

676


What are the types of delegates in c#?

673


What are the types of attributes in c#?

711


Are c# strings immutable?

698


Int map to which .net types?

784


Is c# substring zero based?

709


What is dll in vb.net?

704