Copyright ©2004 Pearson Addison-Wesley. All rights reserved.
Passing array as function parameter
Array names are pointers.
The name of an array contain the address of its initial element, a = &a;
Passing an array as function argument copies the value of the pointer to the formal array parameter and points to the same location.
Where is the array actually located?
For an array declared as formal parameter, space is allocated in the function data area only for the address of the initial array element of the array passed as actual argument.