The two-dimensional array is a collection of items which share a common name and they are organized as a matrix in the form of rows and columns. The two-dimensional array is an array of arrays, so we create an array of one-dimensional array objects.
The following program shows how to create an 2D array :
Creating 2D array 0 1 2 3
Creating 2D array G e e k s f o r G
- How to Create and Print Multi Dimensional Slice in Golang?
- How to take user input for two dimensional (2D) array in PHP ?
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.