int main() { array double a[4] = {1, 2, 3, 4}; array double b[ ] = {1, 2, 3, 4}; double dotprod; dotprod = dot(a, b); printf("dot(a,b) = %f\n", dotprod); }
dot(a,b) = 30.000000