Question Detail
Continue statement used for
- To continue to the next line of code
- To stop the current iteration and begin the next iteration from the beginning
- To handle run time error
- None of above
Answer: Option B
-
ramtejakongari 9 years ago
continue means stopping the current inst and goes to next one?
if any one have clear in this issue plz show me the right direction?
////??mastguru 9 years ago replied
say you have a loop running 10 times and you want when its 5th time you do not want to implement some logic then you can write "continue", it will skip when i==5, and will again run for i==6 But in case you want to stop and execute next then you will use "break" instead of Continue. Hope it helps