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...

An Array is a Ref Type? what about the array elements which
are value type(int,Float...etc)?

Answer Posted / nishesh

Array is ref type bcoz it holds the address or refrence to the elements and whnever array is used it refers to that address

whereas int, float, double are value types bcoz they directly stores value.

another difference
whn we make changes in array it does not allocate any new memory to the array elements
but whn we make changes with value types they allocate new memory to the new result obtained

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you specify a custom attribute for the entire assembly (rather than for a class)?

956


Are enums static c#?

977


What is main thread in c#?

919


When was .net linq added?

960


Explain the difference between const and static read-only?

1009


Why does dllimport not work for me?

1044


Why is static constructor called first?

906


What is .edmx file?

991


What is xaml in c#?

935


What is a linq in c#?

885


What is multithreading with .net?

1002


What is method overriding in c#

1099


What is short in c#?

976


What is sqlcommandbuilder c#?

941


What is difference between ienumerable and ienumerator in c#?

937