what are value types and reference types? where they are stored?

Answer Posted / pankaj

value types------int,float,char
reference type----Array,class

value types stored in stack while reference type stored in heap.
in reference type address f variables are stored

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In .NET which is the smallest unit of execution?

840


what is the scope of anonymous type ?

777


How to find Percentage, name ,College from a resume or document ? How to export these values to other page in C#?

714


Does c# support a variable number of arguments?

777


Is there an equivalent to the instanceof operator in visual j++?

750


Does c# support c type macros?

710


What is the difference between interface and abstract class in c#?

677


Can abstract class be sealed?

647


Can you use foreach iteration on arrays in c#?

792


Explain how do you convert a value-type to a reference-type?

645


What is Event - Delegate?

795


What is xor operation?

708


How many types of delegates are there in c#?

670


What is dictionary collection in c#?

680


What is a string c#?

649