[Solved] How the array work in c?


Please note, the third for loop is nested inside the second loop. So, for each value of j in the other loop body like 0, 1, 2, the inner loop will execute for each time.

If you’re bothered that after the first loop, j will be 10, then don’t worry, the statement-1 in the second for loop (for(j=0;... part) will re-assign the value to 0, so the second loop will start with a value of 0 for j.

1

solved How the array work in c?