Where do we declare the loop index of a FOR LOOP?
Where do we declare the loop index of a FOR LOOP? Correct Answer It doesn’t have to be declared
The loop index doesn’t have to be declared because it is always an integer and can be directly used in a loop. So, it is locally declared for a loop. For example, FOR x in 1 TO 10 LOOP; Here ‘x’ is the loop index. Also, it can be reassigned a value within the loop.
মোঃ আরিফুল ইসলাম
Feb 20, 2025
