We can use labels at anywhere except before the declaration , but without a "goto" statements we can never call those labels.
Then what is the use for such labels ?
Rob Prime wrote:Labelled statements should only be used with nested loops, where an inner loop needs to break or continue one of the outer loops. For instance:
Since labels can be applied to any statements except before declaration , but break and continue should be within a loop. So my question was that what is the benefit of of such labels which are outside the loop or before any other statements ?
Legend has it that if you rub the right tiny ad, a genie comes out.