+ 1
What is the meaning of a? (Look at the comment of my program)
2 ответов
+ 8
Variable 'a' is responsible for the iteration process by being the index which specifies the starting point, and the termination condition. The variable is also used as one of the array indexes to iterate through the multidimensional array from each iteration of the for loop.
+ 6
for (a = 0; a < 3; a++)
so a will take values 0, 1, and 2 for each loop. The loop will run three times. Substitute these values into the loop content and you will see what the loop does, with some calculation and tracing.