English
Tamil Nadu Board of Secondary EducationHSC Science Class 11

What are a null statement and compound statement? - Computer Science

Advertisements
Advertisements

Question

What are a null statement and compound statement?

Short Note

Solution

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
  Is there an error in this question or solution?
Chapter 10: Flow of Control - Evaluation - Section - B [Page 178]

APPEARS IN

Samacheer Kalvi Computer Science [English] Class 11 TN Board
Chapter 10 Flow of Control
Evaluation - Section - B | Q 1. | Page 178
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×