हिंदी
तमिलनाडु बोर्ड ऑफ सेकेंडरी एज्युकेशनएचएससी विज्ञान कक्षा १२

Differentiate Switch and if else statement. - Computer Applications

Advertisements
Advertisements

प्रश्न

Differentiate Switch and if else statement.

अंतर स्पष्ट करें

उत्तर

Switch statement if-else statement
Switch statement uses single expression for multiple choices. the if-else statement uses multiple statements for multiple choices.
Switch statement test only for equality. if-else statement test for equality as well as for logical expression.
Switch statement execute one case af­ter another till a break statement is appeared or the end of switch statement is reached. Either if statement will be executed or else statement is executed.
shaalaa.com
Php Conditional Statements
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 6: PHP Conditional Statements - Evaluation - PART – III [पृष्ठ १११]

APPEARS IN

सामाचीर कलवी Computer Applications [English] Class 12 TN Board
अध्याय 6 PHP Conditional Statements
Evaluation - PART – III | Q 3. | पृष्ठ १११
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×