What is difference between value and reference types?
Answer Posted / payal
value
this stored actual value
reference
stored the address of the value
value store in stack
reference is stored in heap
the variable which are value type they each time create
their own copy
the variable which are reference type they refer the same
object every time
Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
Is null empty or whitespace c#?
How many constructors can a class have c#?
Can we inherit two classes in c#?
What is a c sharp?
Define interface class in c#?
Is c# dictionary a hash table?
what is the index value of the first element in an array?
What is whitespace in c#?
What does async mean in c#?
Can we declare private class in c#?
Define c# delegate?
Is array a collection c#?
Why are strings immutable c#?
What is console application with example?
Is it possible to execute multiple catch block for a single try statement?