0
What is difference between if and switch statements with example
If and switch statements
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."
+ 1
switch example
https://code.sololearn.com/c87c1j59t6b2/?ref=app