What is difference between value and reference types ?
Answer Posted / thirupathi reddy
value refers what is present in the address of the memory
Reference type refers to the address of the memory
Ex:
int a = 10( here the value stores in the address 'a' and the value of that address is 10)
int b = &a (here the variable b refers the address of
the variable a)
here if we print("%d",a) the value prints
here if we print("%d",b) the reference value of a is printed.
this is the difference between "value" and "reference values"
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
What are the advantages of using assemble language programming?
How many types of serialization are there in c#?
What is difference between private, protected, and public in C#?
Explain the process of Serialization?
Explain about accessibility modifier 'protected internal'?
Difference between call by value and call by reference in C#?
When should we use sealed class in c#?
In languages without exception-handling facilities, we could send an error-handling procedure as a parameter to each procedure that can detect errors that must be handled. What disadvantages are there to this method?
What is oledb in c#?
Which is faster hashtable or dictionary?
What is difference between ilist and list?
Why do we need constructor in c#?
Whats an assembly? Describe the importance of assembly?
How Reflection is used and what it's significance ?
What are desktop applications examples?