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

Answer Posted / chiyan

value types holds the data directly ,no default value for
value type ex-->predefined datatypes
-->structures
-->enumarator
valuetypes will be stored in stack memory.

refe types does not holds the value directly,ref type holds
the default value ex-->arrays
-->classes
-->objects

ref types will be stored in heap memory.

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Overloaded constructor will call default constructor internally?

571


Explain the difference between abstract class and interface.

600


What is public or shared assemblies ?

561


What is event delegate in c#?

584


What is difference between write and writeline in c#?

490






What are bitwise logical operators?

489


What is lastindexof c#?

487


Describe an abstract class?

559


Can we call server-side code (c# or vb.net code) from javascript?

525


What is sorted list in c#?

513


What is verbatim string literal in c#?

473


Is c# code is unmanaged or managed code?

521


What is ildasm.exe used for?

534


What is tochararray in c#?

453


What is difference between events and delegates?

495