// segment 1 int a=0, b=4; ++a = b++; |
void f(float arr1[], float arr2[], int size) { float prev = arr1[0]; float curr = arr1[1]; float next = arr1[2]; int i = 2; while (i < size) { arr2[i] = (next + curr + prev) / 3; prev = curr; curr = next; i++; next = arr1[i]; } } |