0

help

a boolean expression that controls the exception of the loob bodyïżŒ , what is it? loop continuation condition?

22nd Jul 2020, 12:06 PM
Blue Monster
Blue Monster - avatar
1 Réponse
+ 1
Are you sure about your that statement? I think, in that statement, It should be "execution" not "exception". "A boolean expression that controls the execution of the loop body". That is a exit condition, otherwise it becomes Infinite loop. Edit: There you can specify that in varies ways... For ex: for loop for(initializations ; exit_condition ; increment/decrement) { //body.. } for(int i=0; i<10; i++) { .. } Here, i<10 is the boolean condition, which stops loop when i value becomes 10.
22nd Jul 2020, 1:10 PM
Jayakrishna 🇼🇳