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 web forms in c#?
what are pointer types in c#
What is the difference between string keyword and system.string class?
What is an interface class? Give one example of it
What are the two kinds of properties in c#.
What is the symbol used for in c#?
Can we make a class private in c#?
What is property in c#?
What is different about switch statements in c#?
What is the advantage of generics in c#?
How do I create a multilanguage, single-file assembly?
In which format you can pass the value in the sleep function?
Is static thread safe?
What is asynchronous one-way calls?
What does console readline do in c#?