| 1. |
Why Do We Use A Multidimensional Array? |
|
Answer» A multidimensional array can be useful to organize subgroups of data within an array. In addition to ORGANIZING data stored in elements of an array, a multidimensional array can store memory addresses of data in a pointer array and an array of pointers. e.g; a railway timetable, schedule cannot be stored as a single dimensional array. One can use a 3-D array for STORING height, width and length of each ROOM on each floor of a building. A multidimensional array can be useful to organize subgroups of data within an array. In addition to organizing data stored in elements of an array, a multidimensional array can store memory addresses of data in a pointer array and an array of pointers. e.g; a railway timetable, schedule cannot be stored as a single dimensional array. One can use a 3-D array for storing height, width and length of each room on each floor of a building. |
|