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

Explain the difference between boxing and unboxing.

537


What is a interface in c#?

475


What are native functions?

472


What are the string functions in c#?

524


What are virtual classes in c#?

533






Why do we need generics in c#?

512


What is winforms c#?

485


How can you sort strings in array that are passed to method as arguments?

530


What is a nested type. Give an example?

619


What is tryparse?

519


Describe the process of “exception handling implementation” in c#?

518


Explain the various types of classes used in c#?

503


What is a deadlock lock?

494


What is private and shared assembly?

547


Can scriptable objects have methods?

500