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

Compare an if and a ? : operator. - Computer Science

Advertisements
Advertisements

प्रश्न

Compare an if and a ? : operator.

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

उत्तर

The if statement evaluates a condition, if the condition is true then a true-block is executed, otherwise false-block will be executed! Block may consist of one or more statements. The conditional operator (or Ternary operator). is an alternative for the ‘if-else statement’. Here if the condition is true one statement otherwise another statement will be executed.

shaalaa.com
Statements
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 10: Flow of Control - Evaluation - Section - B [पृष्ठ १७८]

APPEARS IN

सामाचीर कलवी Computer Science [English] Class 11 TN Board
अध्याय 10 Flow of Control
Evaluation - Section - B | Q 8. | पृष्ठ १७८
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×