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

Does C# supports multi-dimensional arrays ?

Answer Posted / art?r herczeg

There are 3 types of arrays:

* Single-dimensional arrays:
int[] numbers = new int[5];

* Multidimensional arrays:
string[,] names = new string[5,4];

* Array-of-arrays (jagged):
byte[][] scores = new byte[5][];
for (int x = 0; x < scores.Length; x++)
{
scores[x] = new byte[4];
}

http://msdn.microsoft.com/library/default.asp?url=/library/
en-us/csref/html/vcwlkArraysTutorial.asp

Is This Answer Correct ?    34 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Distinguish between finally and finalize blocks?

919


What are Namespaces?

1346


What is garbage collector and where should you use in .NET?

989


What are the different types of classes?

1003


Which program construct must return a value?

1076


What is the use of protected in c#?

948


What is the difference between read and readline in c#?

929


How do you escape in c#?

935


How does bitwise work?

889


How to move to a state-related codebase?

1544


How we can create an array with non-default values?

952


What is indexer c#?

892


What is Wrapper class in dot net?

1069


What is a Managed Code??

1030


What is callback method in c#?

939