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

What is xml c#?

492


Explain the working of serialization?

495


What will be the output of the following code?

516


What is the difference between dynamic type variables and object type variables in c#?

490


How big is an int16?

503






What is the difference between an integer and int?

478


What is an assembly qualified name

534


What is the base class of all classes in c#?

517


What is hashtable c#?

477


Is c# static or dynamic?

514


What is the purpose of private constructor in c#?

559


What is the difference between Java and .NET garbage collectors?

519


What is a three-tier application.

565


What is the difference between abstract class and interface in c#?

504


Can a class have more than 1 destructor?

524