InterviewSolution
Saved Bookmarks
| 1. |
In A For-loop, Can The Counter Value Be Assigned A Value Within The Loop? |
|
Answer» The COUNTER of a FOR-LOOP can only be used as a constant within the loop. It cannot be assigned a VALUE INSIDE the loop, as that would change the bounds of the loop, which is logically not possible. The counter of a FOR-LOOP can only be used as a constant within the loop. It cannot be assigned a value inside the loop, as that would change the bounds of the loop, which is logically not possible. |
|