📖 Samacheer Kalvi · 11th TN - English Medium · Computer Science · Page 158example

Flow of Control

Chapter 3: 4 · Computer Science

Flow of Control There are two kinds of statements used in C++. (i) Null statement (ii) Compound statement . . Null statement The " null or empty statement " is a statement containing only a semicolon.

It takes the flowing form: ; // it is a null statement Null statements are commonly used as placeholders in iteration statements or as statements on which to place labels at the end of compound statements or functions. . . Compound (Block) statement C++ allows a group of statements enclosed by pair of braces {}.

This group of statements is called as a compound statement or a block. The general format of compound statement is: statement1; statement2; statement3; For example int x, y; x = ; y = x + ;

Related topics

Have a question about this topic?

Get an AI answer grounded in your actual textbook — with the exact page reference.

Ask AI about this topic →