What are the differences between IF and SWITCH conditions in C language?
Answers
Answered by
7
Answer:
The if statement is used to select among two alternatives. It uses a boolean expression to decide which of the alternative should be executed.
The switch statement is used to select among multiple alternatives. It uses an expression to determine which alternative should be executed.
Hope it helps you mate
Answered by
3
Explanation:
The if statement is used to select among two alternatives. It uses a boolean expression to decide which of the alternative should be executed. The switch statement is used to select among multiple alternatives. It uses an expression to determine which alternative should be executed.
Similar questions
Math,
4 months ago
Social Sciences,
4 months ago
Math,
4 months ago
Social Sciences,
8 months ago
Math,
8 months ago
India Languages,
11 months ago
Math,
11 months ago
English,
11 months ago