Posted on 28th March 2024
A switch is a statement that helps to write a sequence of the if-else statement in an easy way. It runs the first case whose value is similar to the condition expression. It runs only the selected cases and the cases need no be constants or the integers.
STILL GOT QUERIES?