+ 2
Why for loop ending with ; gives error
4 Antworten
+ 14
When you have a for loop that ends with a semicolon,(;) it means that there is no body for the loop. Basically its an empty loop. It can be useful for finding the length of a string, number of elements in a array, and so on.
0
Thanks
0
Thanks. Actually I didn't put the semicolon in between as I know it will give infinite loop