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
How do I create a delegate/multicastdelegate?
What is default boolean value in c#?
What is a class in unity?
Can property be private in c#?
What is the task perform by clr?
What is literal control
Are structs faster than classes?
What can be done with c#?
What is an assembly in .net?
What is the difference between namespace and class?
What is console write in c#?
Why c# is type safe?
Does c# support multilevel inheritance?
What is yield c#?
Give 2 scenarios where static constructors can be used?