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
Why ref is used in c#?
Name the connections does microsoft sql server support?
Can you have parameters for static constructors?
What is the default value of boolean variable?
What is xamarin used for?
What is difference between events and delegates?
What are reflections in c#?
Can bool be null c#?
what is the difference between .dll and .exe
Why var is used in c#?
Can you access a hidden base class method in the derived class?
what is collections in .net? why we use?
What is tryparse?
What is concatenation and when should it be used?
Is unboxing an implicit conversion?