Statements

C statements always end with semicolons. Here is a statement from the VOLUME.C program:

result = 4 * PI * result;

Summary: Statement blocks are enclosed in braces.

You can also enclose a group of statements in braces, making a “statement block.” Statement blocks contain related statements, such as the statements in the body of a function.

The C language ignores white space (tabs, blanks, and line breaks) in your source program, so you can arrange your program in almost any style. However, a few de facto rules help promote readability. A typical C program is written with one statement per line. Braces align vertically, and statements inside braces are indented. The “Introduction” describes the programming style used in this book.