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
Will the following code compile and run?
What does out mean in c#?
What is a must for multitasking
What does it mean?
What is the difference between ienumerable and enumerator?
What is boxing & unboxing?
What is difference between destructor and finalize?
What is the use of system.environment class in c#.net?
What are the concepts of dispose method?
Can derived classes have greater accessibility than their base types?
What are the 3 logical operators?
What is a generic in c#?
What is type checking in c#?
Is it possible to inline assembly or il in c# code?
Which .gang of four. Design pattern is shown below?