if-else vs. switch case | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

if-else vs. switch case

Is an if-else block or switch case statement better for checking for equality?

1st Nov 2017, 5:29 PM
Christian Parsons
Christian Parsons - avatar
1 Answer
+ 1
if- else is better for checking equality.
1st Nov 2017, 6:30 PM
Muthumani V
Muthumani V - avatar