0
what if I don't use break; in Switch?
without using break; code works properly, so why should I use break? And what is it importance? I need a good explaination ☺
4 Respuestas
+ 2
Donna Will you add something concrete in the default statement so Tasin sees that the statement in default is executed as well? ☺
+ 1
Hi Gordie
It seems to me your are not on sololearn to learn coding. But you have a lot of knowledge about coding. can you tell me where do you learn coding?
+ 1
well Gordie, you are very helpful.
It would be a great pleasure if I counld connect with you privetly through facebook or whatsapp.
0
The code keeps going and compares the value with the next case. If it finds a match it executes it. But it is considered a waste of time since you already found your answer why bother looking at rest of the code to slow down the program.