What happens when breaking in nested loops?
suppose the following code:
for(int x = 0; x < 10; x++)
{
do {
if(x == 4)
break;
x++;
} while(x != 1);
}
Which loop will exit on encountering the break statement, the for loop or the do while loop ?