English

Differentiate Between If Else If and Switch-case Statements. - Computer Applications

Advertisements
Advertisements

Question

Differentiate between if else if and switch-case statements.

Distinguish Between

Solution

if-else if switch-case
(i) It evaluates integer, character, pointer or floating-point type or boolean type. (i) It evaluates only character or integer value.
(ii) Which statement will be executed depend upon the output of the expression inside if statement. (ii) Which statement will be executed is decided by user. 
shaalaa.com
  Is there an error in this question or solution?
2018-2019 (March) Set 1
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×