Arrays of structs as parameters
An array of structs is treated like any other array. If a parameter is an array of structs, a pointer to the begin-ning of an array (i.e.an array name) is the appropriate argument.
/* Store 0’s and blanks in pa[0..n-1] */
function zap (Pair pa [ ], int n) {
{pa[k].a= 0; pa[k].ch= ‘ ’;}
/* initialize ray[0..16] to 0’s and blanks */