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 a race condition?

669


What is the difference between list and arraylist in c#?

586


If I want to override a method one of class A and in class b then how do you declare?

944


Which function is the entry point for a DLL in MS Windows 3.1?

883


How to declares a two-dimensional array in C#?

796


What are the uses of namespaces?

787


Do unused Namespaces in c# affect run-time performance?

741


code for arranging given number in possible permutation ways ex:123,321,312,132,231,213.

1949


What are the boolean data types in c#?

691


Does hashset allow duplicates c#?

715


What is cache memory in c#?

660


How do you implement thread synchronization in c#?

660


What is the main purpose of delegates in c#?

731


Is comparator a functional interface?

650


Explain the Different types of configuration files in .net?

770