Differentiate Between If Else If and Switch-case Statements.
Advertisements
प्रश्न
Differentiate between if else if and switch-case statements.
अंतर स्पष्ट करें
Advertisements
उत्तर
| 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
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
