void foo (int n, int *a, int *b) { int i; for (i = 0; i < n; i += 2) b[i] = b[i+1] = a[i] + 1; }