Can anyone explain what is switch and case are | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 1

Can anyone explain what is switch and case are

8th Mar 2022, 11:43 AM
FREE FIRE GAMING LIVE
FREE FIRE GAMING LIVE - avatar
2 Réponses
+ 4
Switch statements will be explained in lesson 18 of the c++ sololearn course. Copy the code, change it, look at the outputs. If you need further help, please link an example of code that you don't understand.
8th Mar 2022, 12:26 PM
Lisa
Lisa - avatar
+ 1
In short: Switch/case is basically a more readable if/else if construct
8th Mar 2022, 1:02 PM
Matthias
Matthias - avatar