What is the Difference between value and reference type?

Answer Posted / taranjeet

value type: when value is assigned to another
variable,values are copied.
refrence type: when assignment between two variable accures
only reference is copied value remain same

Is This Answer Correct ?    58 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are destructors in C#?

1129


What is the difference between continue and break statement?

733


What is interpolation in programming?

671


How can you achieve run time polymorphism in C#?

743


Is arraylist faster than linkedlist?

676


Differentiate between the public and private ?

735


List the differences between method overriding and method overloading?

670


What is default value of decimal c#?

640


How does bubble sort work?

666


Why we use get and set method in c#?

675


How is the syntax written to inherit from a class in C#?Give an example ?

774


What is dataset and dataadapter in c#?

673


What is the difference between console and windows application?

649


Is string primitive?

651


Is enum a value type c#?

768