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
Is dictionary reference type c#?
what class is underneath the sortedlist class?
If casting fails what type of exception is thrown?
What are the 2 types of data types available in c#?
How to find whether the application is run from inside ide or not?
What is the meaning of MSIL?
What are the Types of caching
Is null empty or whitespace c#?
What is a multicast delegate in c#?
how to implement a web service in .net
How do you escape a character?
What is the difference between double and decimal in c#?
What is transparent caching with aop ?
Why is c# used?
What is xml comments in c#?