What is value type and reference type?

Answer Posted / kishore

Value types are the variables that directly contain the
vaiue and are stored in stack memry.
Example: int, char, float...

Reference types does not contain the value directly but has
the address of the value i.e reference address..
Reference types are stored in Heap memory.

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which framework is best for desktop application?

697


What does dbml stand for?

718


What are the different approaches of passing parameters to a method?

703


what are windows services?

712


What are anonymous functions in c#?

697


What is the data encapsulation?

641


When can a derived class override a base class member?

673


What are the advantages of using c#?

699


Explain the role of the datareader class in ado.net connections?

657


What are the advantages of using assemble language programming?

704


What is parsing?

692


State the top.NET class that everything is derived from?

708


What is an interface class in c#?

736


What Happens In Memory When You Box And Unbox A Value-type?

640


How does c# generics and c++ templates compare?

651