grizedale
Advanced Member level 3
Supposing i have a break statement inside a for loop, which lies inside a while loop.
Does the break statement, if executed, make control jump out of both loops, or just out of the for loop?
eg
while(1);
{
for (i=0;i<10;i++) {
c = c+1;
if (c = 10) {break;}
}
d = d+1;
}
Does the break statement, if executed, make control jump out of both loops, or just out of the for loop?
eg
while(1);
{
for (i=0;i<10;i++) {
c = c+1;
if (c = 10) {break;}
}
d = d+1;
}