// cpy(A,B,n) copies B[0,...,n-1] into A[0,...,n-1]. void cpy(int A[], const int B[], int n) { for(int i = 0; i < n; i++) { A[i] = B[i]; } }