Definition of two-dimensional array:
data_type array_name[row_size][column_size];
This:
works. Why? This should mean a size 2 row and a size 3 column, shouldn't it?Code:int table[2][3] = { {0,0,0},{1,1,1} };
Doing this:
or this:Code:int table[2][2] = { {0,0,0},{1,1,1} };
does not work. What's the obvious answer here? Why is a size of 3 for rows written as 2 in the 2-dimensional array?Code:int table[2] = {0,0,0};