© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2023
S. DmitrovićModern C++ for Absolute Beginnershttps://doi.org/10.1007/978-1-4842-9274-7_5

5. Types

Slobodan Dmitrović1  
(1)
Belgrade, Serbia
 

Every entity has a type. What is a type? A type is a property describing the set of possible values and operations on those values. Instances of types are called objects. An object is a region in memory that has a type, a value, and possibly a name. An instance of a simple type is not to be confused with an instance of a class which is also called an object.

Fundamental Types

C++ has some built-in types. We often refer to them as fundamental types. A declaration is a statement that introduces a name into a current scope. ...

Get Modern C++ for Absolute Beginners: A Friendly Introduction to the C++ Programming Language and C++11 to C++23 Standards 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.