Answer DB17

/* Puzzle D17 -- multiply corresponding elements in two integer arrays
a and b to determine the elements of a third array c*/

void multTwoArrays( int size, int a[], int b[], int out[] )
{
  int j;
  for ( j=0; j < size; j++ )
    out[j] = a[j]*b[j] ;
}



Back to Puzzle Home