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 generics work in c#?
What Is An Interface Class?
What do you mean by “finalize” and “finally” methods in c#?
How Global.asax is used ?
When do we generally use destructors to release resources?
What is thread in c#?
What is serialization and deserialization in c# with example?
Explain deadlock?
What is web forms in c#?
How do I create a multilanguage, single-file assembly?
What standard types does c# use?
Explain how do I get deterministic finalization in c#?
What is the difference between structure and class in c#?
What is the difference between firstordefault and singleordefault?
What is object array in c#?