if-else vs. switch case | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
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 Respuesta
+ 1
if- else is better for checking equality.
1st Nov 2017, 6:30 PM
Muthumani V
Muthumani V - avatar