2d array
int a[2][3]= { {1, 2, 3}, {4, 5, 6} }; cout << a[1][1]; // Output is 5
Here is what the above code is Doing:
1. We have declared a 2D array of size 2x3.
2. We have initialized the array with values.
3. We have printed the value at index 1,1.