2.8. Key Point Summary

  • Machine representations of C++ built-in types are machine and compiler dependent. All built-in types may be signed or unsigned except extended precision types (float, double, long double). Single quotation marks (') delimit character constants, and double quotation marks (") delimit character string literals. String literals may be any length and have a terminating NULL byte ('\0').

  • Variable definitions allocate memory; variable declarations do not. A variable must be defined or declared before you use it. Variable declarations use the keyword extern, so one module may access a variable definition from another.

  • You must initialize const variable definitions. Enumerated types use descriptive words to replace integer constants. ...

Get Navigating C++ and Object-Oriented Design 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.