About this document
C++ Multidimensional Arrays Explained by Jeyanthi Govindasamy is a document available to read on EtoBox.
C++ allows for the creation of multidimensional arrays, known as arrays of arrays. A two dimensional array can be declared with the syntax "data_type array_name[index of rows][index of columns]"; this allows the array to store elements in rows and columns. For example, a 2D integer array to store student marks with 2 rows and 3 columns can be declared as "int mark_student[2][3]" and initialized with values like {{90,85,60},{40,86,95}} to place the marks in the rows and columns.
- Author
- Jeyanthi Govindasamy
- Language
- EN