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 3 types of comments in c#?
What are object pooling and connection pooling and difference? Where do we set the Min and Max Pool size for connection pooling?
What are the types of attributes in c#?
What is lastindexof c#?
Explane each and every methods of nterface Queue? Explain About performance issues on retrieving records
How do you inherit a class into other class in c#?
What is firstordefault c#?
Is array value type in c#?
What is the difference between yield and return?
What are namespaces, and how they are used?
What is the purpose of private constructor in c#?
How do you implement thread synchronization in c#?
What do u mean by delegation?
What is generic types in c#?
Is post back c#?