What is difference between value and reference types?
Answer Posted / kartheeksirangipatel
ValueType:
-->Value types holds data directly.
-->Nodefault value for valuetype
-->valuetype stored in stack memory
-->Stack is not accessible to Garbage collector
Ex--->Predefined datatypes
Structures
Enumarator
Reference type:
-->Ref type does not holds the datadirectly
-->Ref type holds the default value
-->ref type will be stored in Heap memory
-->Heap is accessible to garbage collector
Ex--->Arryas
Classes
Objects
Deligates
Interfaces
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
What is command object in c#?
What is func delegate in c#?
What is wcf c#?
What do you mean by expression tree?
Is null == null c#?
What is a predicate in c#?
How do you create user defined data types in c#?
Can you have an array of arrays?
What does m mean in decimal c#?
How do I create a new form in c#?
What is the difference between new and override in c#?
Where do I put dll files?
What is ulong in c#?
What does dbml mean?
Can an abstract class inherit from another abstract class c#?