- C provides rectangular multi-dimensional arrays, in practice they are much less used than array of pointers
- In C, a two dimensional array is really a one dimensional array, each of whose elements is an array. Hence subscripts are written as:
- An array is initialized by a list of initializers in braces
- If a two-dimensional array is to be passed to a function, the parameter declaration in the function must include the number of columns; the number of rows is irrelevant
No comments:
Post a Comment