Which statement will be executed after \"continue\" or \"break\" ?
for(int i = 0; i < count; ++i)
{
// statement1
continue ends the current iteration, virtually it is the same as:
for(int i = 0; i < count; ++i)
{
// statement1
for(int j = 0; j < count; ++j)
{
//statement2
if(someTest)
goto end_of_loop;
end_of_loop:
}
//statement3
}
break exits the loop:
for(int i = 0; i < count; ++i)
{
// statement1
for(int j = 0; j < count; ++j)
{
//statement2
if(someTest)
goto after_loop;
}
after_loop:
//statement3
}