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

What is the c# equivalent of c++ catch (…), which was a catch-all statement for any possible exception? Does c# support try-catch-finally blocks?

948


Where are value types stored in c#?

1102


What is native image generator (ngen.exe)?

1262


What Is The Smallest Unit Of Execution In .net?

975


What is the difference between IEnumerator and IEnumerable?

1216


How many types of constructors are there?

919


If I have more than one version of one assemblies, then how'll I use old version (how/where to specify version number?)in my application?

973


Is as operator in c#?

932


What is a service layer c#?

908


What is this keyword in C#?

1030


How big is an int in c#?

1028


How do I simulate optional parameters to com calls?

994


What is func delegate in c#?

995


What is the difference between returning iqueryable vs ienumerable?

1030


What is callback function in c#?

962