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 using keyword in C#?

572


What is the system namespace?

478


how dot net compiled code will become platform independent?

529


What do you know about Translate Accelerator?

597


What is an inheritance in c#?

498






What's the difference between System.String and System..StringBuilder in C#?

506


What is meant by console programming?

480


How are methods overloaded?

546


Why would you use untrusted verification?

536


What is the purpose of ienumerable in c#?

499


Can you use all access modifiers for all types?

541


What is type safe code?

476


Can extension methods access private members?

514


What is the name of c# compiler?

636


Can properties be overloaded in c#?

554