First page Back Continue Last page Graphics
Two Dimensional Arrays (cont.)
Initializing
int my_2d [ 3 ] [ 4 ] = {
{ 1, 2, 3, 4 },
{ 5, 6, 7, 8 },
{ 9, 10, 11, 12 }
};
Two dimensional arrays are normally accessed with “nested loops”.
Practice: nested.cpp in prata