0
How compiler determines a quantity of array's dimensions at parameter description point?
I mean that actually I can apply a 2 dimensional array as a parameter of function printArray(int arr[], int size) or not? Does this pursuit reglamented?
1 ответ
0
When you pass an array as a parameter, you're not actually passing the content (and thus the size) of the array itself –rather, you pass a pointer to the array: some kind of indicator of where the array begins, in terms of memory allocation.