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

Is c# pass by value?

859


How can I produce an assembly?

981


What are actions in c#?

834


Explain about Oops concept

905


What is dto c#?

842


How many types of constructors are available in c#?

995


Explain about finalize method?

879


What is the difference between system.string and system.text.stringbuilder classes?

943


What is marshalling and what are different kinds of marshalling?

860


What type of data type conversion happens when the compiler encounters the following code?

871


How do I open the console?

936


What are the advantages of using assemble language programming?

877


What is inner class in c#?

910


What is dataset and dataadapter in c#?

875


how to compare numbers and dispaly the largest ? *first thing I wanted to do is to input how many numbers to be compared *and then analyzed the largest then display it.

1668