The two-dimensional array is a collection of items that 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 a 2D array :
Example 1: In this example, we will construct a two-dimensional array using integer values.
Creating 2D array 0 1 2 3
Example 2: In this example, we will create a two-dimensional array using string values.
Creating 2D array G e e k s f o r G
My Personal Notes arrow_drop_up
Please Login to comment...