हिंदी

What are a null statement and compound statement?

Advertisements

प्रश्न

What are a null statement and compound statement?

टिप्पणी लिखिए
Advertisements

उत्तर

null statement: The “null or empty statement” is a statement containing only a semicolon. It takes the flowing form: ;
// it is a null statement

compound Statement:
In C++, a group of statements enclosed by pair of braces {} is called a compound statement or a block.
The general format of compound statement is:
{
statement1;
statement2;
statement3;
}

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



      Forgot password?
Use app×