0

Operator switch

Is it possible somehow from one case to transfer the value to another case in the operator switch?

19th Dec 2019, 7:24 PM
Mary_d9
Mary_d9 - avatar
3 Respuestas
0
In switch case, the matching case will be executed first, and fall through occurs until break encounters. So after a case match, it will not check for case match again... and you know that, if no match, default case is executed, if you specified. Possibility: using break, & without using break, you can do that according your requirement;
19th Dec 2019, 7:52 PM
Jayakrishna 🇮🇳
0
Bcsonta.mhosivo.anselme💪💪💪💪💪💪💪💪💪💪💪💪💪💪💪💪💪💪👍👍👍👍👍👍👍👍👍👍👍👍
20th Dec 2019, 3:19 AM
Kadio Anselme Kanga
Kadio Anselme Kanga - avatar