The first code is semantically equivalent to the following code:
Does that help?
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Raj Kumar Bindal
Joined: Apr 15, 2006
Thanks Ilja for your reply. But,the way you have given,i think it will become an infinite check because it will check if i==5,then will go to come if i==5,then again into same block ,and again that checking and so on. In this case when will cursor come out of block before which COME is written.
If you would have given the above way,i would have definitely agreed!!
The "break" statement causes the current iteration to be skipped and continues with the next iteration if its used in a loop.
This is true when label comes after line of for loop and before opening braces.When break is written after opening braces,it is ignored and equivalent to writing no break. I think i will have to memorize this thing. But,the main thing of break is done by unlabelled break,so i think there is no use of labelled break. And i have seen the link given by you.From that i think labelled continue is also of no use. Please correct me if i am wrong somewhere.