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

What is the difference between int and int in c#?

506


What is the use of functional interface?

493


What is hashtable in c# net with example?

484


What is the use of ienumerable?

468


in object oriented programming, how would you describe encapsulation?

571






Is there hashmap in c#?

478


What is .net c#?

491


What is difference between new and override in c#?

467


Explane each and every methods of nterface Queue? Explain About performance issues on retrieving records

597


Are c# objects passed by reference?

478


What is the difference between a method and a property?

472


Explain the steps to create satellite assembly?

502


What is delegation in oops?

531


In gridview in editmode if we want to display information in one combobox based on

1836


Structs are not reference types. Can structs have constructors?

508