C - onditional Statements
Which of the following is a key difference between
switch and if statements in C?switch and if statements in C?switchswitch statement in C only accepts integral types like int, char, or enum for its expression.if statement flexibilityif statements can evaluate any condition that results in true or false, including ranges and complex expressions.switch works only with integral types, if works with any condition -> Option A15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions