Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Answers were Sorted based on User's Feedback



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

Answer / 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

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

Answer / chiyan

value types holds the data directly ,no default value for
value type ex-->predefined datatypes
-->structures
-->enumarator
valuetypes will be stored in stack memory.

refe types does not holds the value directly,ref type holds
the default value ex-->arrays
-->classes
-->objects

ref types will be stored in heap memory.

Is This Answer Correct ?    7 Yes 0 No

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

Answer / 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

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

Answer / poornima

Value Types:

All numeric data types

Boolean, Char, and Date

All structures, even if their members are reference types

Enumerations, since their underlying type is always SByte,
Short, Integer, Long, Byte, UShort, UInteger, or ULong

Reference Types:
String

All arrays, even if their elements are value types

Class types, such as Form

Delegates

1..In value type data stored on stack memory.
2..In reference type data stored on heap memory.

Is This Answer Correct ?    2 Yes 1 No

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

Answer / ctharam

Data Type are 2 Kinds. they are 1) Value Data Type 2) Reference Data Type.

1) Value Data Types are stored in Stack Memory Location( bool,byte,char,decimal,double,enum,float,int,long,struct,short and uint)


2) Reference Data Type are stored in Heap Memory Location(Class,Object,Array,Interface,Delegate and Dynamic).

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

Is c# code is unmanaged or managed code?

0 Answers  


Y go for Interface? What is use of interface?

3 Answers  


Explain About .NET Framework

0 Answers  


write a program to find the biggest palindrome in the given string

0 Answers   Microsoft,


What are the Types of JIT and what is econo-JIT

0 Answers   TCS,


Explain About ADO and its objects

0 Answers   DELL,


Is char * null terminated?

0 Answers  


What is different between Static Constructor and Private Constructor?

0 Answers  


What is the use of 0 in c#?

0 Answers  


Can u list some style properties of List Box?

0 Answers   CGI,


Can multiple inheritance implemented in c# ?

0 Answers  


can you allow a class to be inherited, but prevent the method from being over-ridden?

0 Answers   Siebel Systems,


Categories