How many assignment operations take place in the following l
How many assignment operations take place in the following loop code? for (int i = 1, j = 1; i < 24; i = i + 2) {
j = j * i;
}
Solution
in each iteration of this loop: it takes 4 assignments operations.
According to the loop condition i<24, this loop will iterate 12 times.
so no of assignment operatins: 12*4 = 48
