1.Switch statement looks a lot more tidy and easy to read and understand.
2.Here multiple statements need not to be enclosed within a pair of braces.
3.Switch statement executes faster than if_else because the switch statement checks the condition first and then jumps to the suitable case statement.
Copyright © 2026 eLLeNow.com All Rights Reserved.