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

Can you store multiple data types in System.Array?

Answer Posted / shamjeet

yes,ofcourse
System.Array is of Object Type
eg:
int a =10;
float b=2.03;
string c = "yes"
object[] val = new object[3];
val[0] = a;
val[1] = b;
val[2] = c;

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the steps for creating clr trigger

981


What is the CTS, and how does it relate to the CLS?

941


What is use of hashtable in c#?

827


What are most desktop applications written in?

900


What is protected internal modifier in C#?

983


What are the benefits of using generics in c#?

860


Is vs as c#?

854


What is hashtable c#?

803


Constructor to an arbitrary base constructor?

929


What is anonymous class in c#?

870


Can abstract class be sealed in c#?

843


What is the benefit of using interface in c#?

934


What is default access specifier for class in c#?

932


What does console readline do in c#?

848


Are objects passed by reference in c#?

941