Hi
Is there any way by which we can replace break and continue with structured equivalent.
We can cause loop continuation test to fail but break exits immediately from the point it is encountered so the statements after it are not executed.
Eg
int i=1,j;
for(j=0;j<10;j+ +)
{
break;
i++;
}
I can replace this as
for(j=0;j<10;j+ +)
{
j=11;
i++;
}
But i is incremented in second case. I am struck in this. Please help
Is there any way by which we can replace break and continue with structured equivalent.
We can cause loop continuation test to fail but break exits immediately from the point it is encountered so the statements after it are not executed.
Eg
int i=1,j;
for(j=0;j<10;j+ +)
{
break;
i++;
}
I can replace this as
for(j=0;j<10;j+ +)
{
j=11;
i++;
}
But i is incremented in second case. I am struck in this. Please help
Comment