+ 1

break;

its function how it works, how to use, completely can anyone help me to find out nd help me...

28th Nov 2017, 3:23 AM
Sauvik Saha
Sauvik Saha - avatar
3 Answers
+ 4
for(i=0;i<10;i++) { if(i==5) break; } /*this break in the above code will stop the iteration of for loop when the value of i=5*/ ?*break can also be used in switch cases*/
28th Nov 2017, 5:57 AM
Hemanth Varma
Hemanth Varma - avatar
+ 1
thanks to all
28th Nov 2017, 11:47 AM
Sauvik Saha
Sauvik Saha - avatar