cpp/cpp_tests/openmp/OMP_exercises/solutions/prod_cons.cpp
/* function to sum the elements of an array */
function to sum the elements of an array
function to sum the elements of an array
double Sum_array(int length, double *a) {
  int i;
  double sum = 0.0;
  for (i = 0; i < length; i++)
    sum += *(a + i);
  return sum;
}
double Sum_array ( int length , double * a ) { int i ; double sum = 0.0 ; for ( i = 0 ; i < length ; i ++ ) sum += * ( a + i ) ; return sum ; }
function to sum the elements of an array
function to sum the elements of an array