char page[30][100];
Page has two index values: the first ranges from 0 to 29 and the second ranges from 0 to 99.
Page can be visualized as an array of 30 rows and 100 columns.
Recall that the size of an array is not needed when declaring a formal parameter:
void display_line(const char a[], int size);
The base type of a multi-dimensional array must be completely specified in the parameter declaration:
void display_page (cont char page[] [100], int size_dimension_1);
Two-Dimensional Array Problem Example:
No hay comentarios.:
Publicar un comentario