Formal Arguments (2)
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, 3, 4}; float y[] = {3.0, 4.0, 5.0}; . . . f (j, k[0], y); . . . }
int i = j; float x = k[0]; /* note type conversion */ float *a = y; /* initialize pointer to array */