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 dll a library?
What is virtual class in C#?
When a switch is said to be congested?
Can structs in c# have destructors?
What is icollection in c#?
Is var a data type?
What is the use of the dispose method in C# ?
What is private constructor c#?
How do you create partial methods?
What is Implementation inheritance and interface inheritance?
What is an escape sequence in c#?
What is yield in c#?
What is bit in c#?
What is parameter c#?
I want to print "Hello" even before main() is executed. How will you achieve that?