If I run the following class I got the � Undefined Label: One. Yes it�s correct the label one is not associated with any loop. But the whizlab says it will gives result how it�s possible. Pals explain to me.
swapnil according to K&B book in this code the loop is assoisated first with label "two" right.so in continue statement if we put "continue two" it works fine.is this correct.please correct me if iam wrong .
posted 12 years ago
yes chitti, "continue two" will work absolutely fine. In the case of "continue two" the control will go to the next iteration of for(i=0;i<3;i++) loop. Hence it will print 0,1,2.