2.1. Primitive Built-in Types
C++ defines a set of primitive types that include the arithmetic types and a special type named void
. The arithmetic types represent characters, integers, boolean values, and floating-point numbers. The void
type has no associated values and can be used in only a few circumstances, most commonly as the return type for functions that do not return a value.
Get C++ Primer, Fifth Edition 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.