#include #include void vector_add_square(int N, int *pt_a, int *pt_b, int *pt_c){ /* add two vectors and square the result */ int i; for(i=0;i<=N;i++) pt_c[i] = pt_a[i] + pt_b[i]; pt_c[i] = pt_c[i]*pt_c[i]; /* free up arrays that are no longer needed to avoid memory leak */ free(pt_a); free(pt_b); } /* to run the code: ./main 10 */ int main(int argc, char **argv){ /* read the first command line argument, remembering C is 0-indexed */ int N = atoi(argv[0]); int i,j; /* allocaet three arrays. N doubles per array. */ double *pt_a = (double*) malloc(N); double *pt_b = (double*) malloc(N); double *pt_c = (double*) malloc(N); /* set a and b */ for(i=0;(i++)