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 / anand

Yes in addition to single-dimensional arrays, C# supports
the declaration of multidimensional arrays where each
dimension of the array is separated by a comma. Here I'm
declaring a three-dimensional array of doubles: -
double[,,] numbers;
Examples:

currentMonth=10;
sales = new double[2, currentMonth];
for (int i = 0; i < sales.GetLength(0); i++)
{
for (int j=0; j < 10; j++)
{
sales[i,j] = (i * 100) + j;
}
}

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is executenonquery c#?

824


How to use exception handling in stored procedure?

973


How do you comment in c#?

881


Explain the difference between the debug class and trace class?

849


How many constructors can a class have in c#?

863


What is the difference between an application domain and a process?

938


who is a protected class-level variable available to?

963


What is use of singleton class in c#?

920


Is c# used for any core features of windows vista?

924


Explain the difference between abstract class and interface.

1096


What is a verbatim string literal and why do we use it?

894


Is array passed by reference in c#?

914


What is difference between array and arraylist c#?

950


What is a callback c#?

947


How many bytes is an int?

856