What is difference between value and reference types ?
Answer Posted / gowthami
value types are stored in the memory.
reference types are stored in the heap.
all implicit datatypes,enums,structs are value types.
delegates,objects are reference types..
pointer to the heap where the data is located is maintained
in the stack
when we delete a reference type pointer to the heap is
deleted from the stack
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is response redirect in c#?
if a base class has a number of overloaded constructors, and an inheriting class has a number of overloaded constructors; can you enforce a call from an inherited constructor to a specific base constructor?
Is c# an array?
Why do we need static in c#?
What are predicates in c#?
What is the difference between finalize() and dispose()?
Can you have an array of arrays?
Are cao stateful in nature?
Is it possible to have a static indexer in c#?
What are winforms in c#?
How long does it take to learn c# programming?
What does console readline do?
Is nullable type c#?
What does dbml mean in texting?
What is a struct in C#?