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 a hashset c#?
What is default parameter in c#?
What do you understand by 'access specifiers' in C#?
Difference between directcast and ctype.
Define multicast c# delegate?
Can c# inherit multiple classes?
What is the default value of date?
What is parallel foreach in c#?
How does dll hell solve in .net?
What is the use of tryparse in c#?
What is an Interface in C#?
In c#, what will happen if you do not explicitly provide a constructor for a class?
What is difference between c sharp and c#?
What is a float?
Can you inherit from a sealed class?