To have a multidimensional array, you will need two levels of arrays:
int test[][] = {{1,2}, {3,4}};
However, it will not work , since you need to declare the size of the internal arrays, except for the last:
int test[2][] = {{1,2}, {3,4}};
Or, if you need even more stringent type safety:
int test[2][2] = {{1,2}, {3,4}};
source
share