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

Answer Posted / vaibhav

value type are variable of premitive data types like
int,float struct & refrence type are the instace of user
defied datatype like class,string, etc.
value type vatiable are stored on
stack ,refrence type variable are stored on heap.

Is This Answer Correct ?    13 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why we use extension method in c#?

708


What is the main usage of keyword “virtual” ? How does it work for a method or property?

729


What are the extension methods in c#?

690


Define encapsulation?

892


What is dependency injection in simple words?

718


What are value types in c#?

702


What is cli in c#?

705


Why do we use static class in c#?

682


What are the different types of comments in c#?

685


Why delegates are type safe?

723


Why do we use stringbuilder in c#?

719


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

664


How does the lifecycle of Windows services differ from Standard EXE?

743


If dll and exe files are same it means you can deploy both the files in gac?

714


What is thread and explain states of a thread in c#?

669