C# Multidimensional Array (With Examples)

PHOTO EMBED

Sun Apr 24 2022 23:24:44 GMT+0000 (UTC)

Saved by @hiso #array

using System;

namespace MultiDArray {
  class Program {
    static void Main(string[] args) {
           
        //initializing 2D array
       int[ , ] numbers = {{2, 3}, {4, 5}};
 	 
        // access first element from the first row
       Console.WriteLine("Element at index [0, 0] : "+numbers[0, 0]);
  	 
        // access first element from second row
       Console.WriteLine("Element at index [1, 0] : "+numbers[1, 0]);
    }
  }
}
content_copyCOPY

https://www.programiz.com/csharp-programming/multidimensional-arrays