Suppose, I have a if
statement inside a for
loop:
for( ; ; )
{
if( )
{
printf(" inside if");
break;
}//if
printf("inside for");
}//for
Now, will the break
statement cause the compiler to come out of the for
loop or will it only come out of the body of if
once the condition in the if
becomes satisfied?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…