swith statement | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

swith statement

i dont understand switch statement please tell me how to understand it please help me

23rd Sep 2019, 4:27 PM
Nikhil Namdev
Nikhil  Namdev - avatar
1 Answer
0
its just like an if else but the values are hashed. this means in some ways it is faster than an if else block, but you can only use integer types in the switch parameter.
23rd Sep 2019, 5:06 PM
Bebida Roja
Bebida Roja - avatar