10. Multidimensional Arrays #

Created Saturday 21 December 2019

**2D arrays: **http://www.cplusplus.com/doc/tutorial/arrays/ When declaring a function which takes in a 2D array. It is very important to pass the number of columns in the array. This is important in cpp, as it is a basic requirement for going to the desired location. Arrays are stored in cpp in row-major form. i.e arr[i][j] = (arr+ci+j). Where c = number of columns, i = row number and j = column number. e.g void f(x[][const int], int row, int column); When calling a function, no mention of the ā€˜cā€™ value is required.

e.g x[][const c1][const c2][]ā€¦[const cn]