C

From Colettapedia
Jump to: navigation, search

Passing Arrays to functions via Arguments

double q[9];
stain_t stains[3];
getStainMat (stains, q);

...

void getStainMat(stain_t *stains, double *q) {
  ...
  cosx[i] = stains[i].MODx;
  q[8] = 1.0 / C;
  ...
}