[Solved] What does a[a[]] do in C?
[ad_1] 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 [ad_2] solved What does a[a[]] do in C?