Formal Arguments (1)
void f (int i, float x, float *a)
{
i = 100;
x = 101.0;
a[0] = 0.0;
}
int main ()
{
int j = 1;
int k = 2;
float y[] = {3.0, 4.0, 5.0};
. . .
f (j, k, y);
. . .
}
int i = j;
float x = k; /* note type conversion */
float *a = y; /* initialize pointer to array */