C# – Multi Dimensional Arrays

It is same as single dimensional arrays. just requires more indexes (in dimensions) to get to the element.   Here is again some more info from microsoft.com Arrays can have more than one dimension. For example, the following declaration creates a two-dimensional array of four rows and two columns. C# int[,] array = new int[4,Continue reading “C# – Multi Dimensional Arrays”

C# – Single Dimensional Array

Today we will explore in brief single dimensional array; Index vs. Elements Accessor vs. Stored Values Indexes are zero based Declaring Arrays Declaring and Initializing Arrays Setting / Getting Values As usual, a bit detailed explanation from microsoft.com You can declare a single-dimensional array of five integers as shown in the following example: C# int[]Continue reading “C# – Single Dimensional Array”