Statements and Expressions

A statement is a program unit that is executed as a logical whole so that its component steps are hidden from the programmer, and the details of these steps should not attract the programmer's attention (at least, not at the moment). A program statement is an abstraction tool: It allows us to concentrate on what is being done rather than on how this is done.

For example, declarations and definitions that we discussed in the previous section are statements. We are not interested in the details of memory allocation, such as whether variable a is next to variable b or to variable c, whether the address of variable a is greater than variable c, whether the word starts with the senior byte, and so on. All that we want is ...

Get Core C++ A Software Engineering Approach now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.