0

What is difference between if and switch statements with example

If and switch statements

28th Jan 2019, 5:09 PM
notesforgeeks.com
notesforgeeks.com - avatar
2 Answers
+ 2
https://www.sololearn.com/learn/C/2924/?ref=app You can use switch if you have a lot of conditions to check. " The switch statement often provides a more elegant solution to if-else if and nested if statements."
28th Jan 2019, 5:40 PM
Denise Roßberg
Denise Roßberg - avatar
28th Jan 2019, 6:11 PM
Saad Saleem
Saad Saleem - avatar