Copyright ©2004 Pearson Addison-Wesley. All rights reserved.
Using Array Elements as Function Arguments (1/2)
Suppose that we have a function prototype as shown below.
void do_it(double arg_1, double *arg2_p, double *arg3_p);
Let x be an array of type double elements.
We can call the function do_it as follows.
do_it(x, &x, &x);
The modification on arg2_p and arg3_p will change the values of x and x.