How the output is 4? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
15th Apr 2021, 3:24 AM
Manash Saikia [ 45% Active ]
Manash Saikia [ 45% Active ] - avatar
2 Réponses
+ 4
You do not have a break statement, so each case from the matching case will be executed. As rightly mentioned it is called fall through.
15th Apr 2021, 5:09 AM
Avinesh
Avinesh - avatar
+ 3
Bcz of fall through,,send me java bro
15th Apr 2021, 3:33 AM
Danny Wanyoike
Danny Wanyoike - avatar