Difference between if else statement and switch statement.
Answers
Answered by
7
Answer:
The fundamental difference between if-else and switch statements is that the if-else statement “selects the execution of the statements based upon the evaluation of the expression in if statements”. The switch statements “selects the execution of the statement often according to a keyboard command”.
Answered by
5
Dinference between else statement and switch statement is mentioned below-
1. If- Else statement - In computer science, conditional statements, conditional expressions and conditional constructs are features of a programming language, which perform different computations or actions depending on whether a programmer-specified boolean condition evaluates to true or false..
2.. Switch Statement - In computer programming languages, a switch statement is a type of selection control mechanism used to allow the value of a variable or expression to change the control flow of program execution via search and map.
hope it helps and Mark it as brainliest PLEASE....
Similar questions