Can a LABEL block be used without loop? Any examples?
Here is an example of using labels and break statements without a loop:
block1: { if (a < 0) { break block1; } if (b < 0) { break block1; } return a + b; }
2.1m questions
2.1m answers
60 comments
57.0k users