Skip to main content
added 3 characters in body
Source Link
Peter Mortensen
  • 31.4k
  • 22
  • 110
  • 134

It's a label, though look at the following example:

int a = 0; int b = 0 while (a<10){ firstLoop: a++; while(true){ b++ if(b>10){ break firstLoop; } } } 

When b>10 the execution flow goes to the outer loop.

It's a label, though look at the following example:

int a = 0; int b = 0 while (a<10){ firstLoop: a++; while(true){ b++ if(b>10){ break firstLoop; } } } 

When b>10 the execution flow goes to the outer loop

It's a label, though look at the following example:

int a = 0; int b = 0 while (a<10){ firstLoop: a++; while(true){ b++ if(b>10){ break firstLoop; } } } 

When b>10 the execution flow goes to the outer loop.

edited body; added 2 characters in body
Source Link
Alberto Zaccagni
  • 31.8k
  • 11
  • 75
  • 108

It's a label, though look at the following example:

int a = 0; int b = 0 while (a<10){ a++;firstLoop: firstLoop:a++; while(true){ b++ if(b>10){ break firstLoop; } } } 

When b>10b>10 the execution flow goes to the outer loop

It's a label, though look at the following example:

int a = 0; int b = 0 while (a<10){ a++; firstLoop: while(true){ b++ if(b>10){ break firstLoop; } } } 

When b>10 the execution flow goes to the outer loop

It's a label, though look at the following example:

int a = 0; int b = 0 while (a<10){ firstLoop: a++; while(true){ b++ if(b>10){ break firstLoop; } } } 

When b>10 the execution flow goes to the outer loop

Source Link
Alberto Zaccagni
  • 31.8k
  • 11
  • 75
  • 108

It's a label, though look at the following example:

int a = 0; int b = 0 while (a<10){ a++; firstLoop: while(true){ b++ if(b>10){ break firstLoop; } } } 

When b>10 the execution flow goes to the outer loop