0
Where break keyword used ?
I think that it is used to terminate compound statement but what's the correct answer .
4 Respostas
+ 1
1,switch
2,for do-while while
+ 1
It is used to terminate one case from another when using switch. Without break, if a case satisfies the condition then every following cases are executed causing an error.
0
break;
is used to prematurely break out of any loop, such as switch(), for() or while().
It is an essential component of a switch statement, however, in order to ensure that only one case is triggered.
0
break keyword shows the termination of loop or in switch case statement