[404218]: / Code / C++ / C++ Tutorial Source Files / 27_C++_2DArray.cpp

Download this file

16 lines (12 with data), 275 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
#include <iostream>
using namespace std;
int main()
{
int numberGrid[3][2] = {
{1, 2},
{3, 4},
{5, 6}
};
cout << numberGrid[1][1];
return 0;
}