Can break statement is used in if /else condition check | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Can break statement is used in if /else condition check

9th Feb 2018, 11:34 AM
Karan Rawat
3 Answers
+ 13
if else condition is used for 1 cycle only , so there is no need of something like break; statement /* thats why no break; in if else */
9th Feb 2018, 12:07 PM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 10
Only inside loops and switches. (for, while, do-while, switch[, foreach...])
9th Feb 2018, 12:00 PM
Valen.H. ~
Valen.H. ~ - avatar
0
Can any one send me a simple program
11th Nov 2018, 7:16 PM
Seid