[Solved] What does a[a[]] do in C?


Translate to:

for (int i = 0; i< n; i++) {
    int temp1 = arr[i];
    int temp2 = temp1%k;
    int temp3 = arr[temp2];
    arr[temp2] = temp3+k;
}

Edit: thanks for the correction @R Sahu

1

solved What does a[a[]] do in C?