Lecture 29 Flashcards
(3 cards)
0
Q
Continue:
- what is continue?
- Why use continue?
- How to use continue?
A
- continue allows you to by pass the remainder of the current iteration of a loop
- -continue : Allows the loop to continue on to the next iteration
- break: in contrast will exit the loop entirely - continue;
1
Q
Break:
- What is Break?
- Why use break?
- How to use break?
A
- Break will terminate a loop or exit a switch
- Allows you to stop the loop/switch if an error or irregular condition is detected
- Break;
~*things to note:
There are no arguments
2
Q
Go to:
1.
2.
3.
A
1.