I just have a simple question.
In my program, I have a structure similar to what is below and I was just wondering where it will continue executing once it executes the break?
In other words, will it go to (1) or (2) or some other location?
1 2 3 4 5 6 7 8 9 10 11 12
|
if(...)
{
while(...)
{
if(...)
{
break;
}
}
(1)
}
(2)
|
Thanks for the help!
Last edited on
It will go to (1): Break breaks you from the current loop control: either a for-loop, while-loop, or do-while loop.