← Previous · All Episodes · Next →
Navigating the C++ Type Jungle Understanding the Intricacies of C++ Types Episode

Navigating the C++ Type Jungle Understanding the Intricacies of C++ Types

· 01:15

|

Hello and welcome to C++ Deep Dive. Today we’re exploring the taxonomy of C++ types as presented by Knatten. You may have heard of fundamental types, basic types, integral types, arithmetic types...but what do they all mean? Let’s start with integer types. There are five standard signed integer types: “signed char, short int, int, long int, and long long int.” Each has a corresponding unsigned version, and both together are called the integer types. Add “bool” and the character types, and you’ve got all the integral types. Next up: floating-point. We only have “float, double, and long double,” plus any implementation-defined extensions. The integral and floating-point types form the arithmetic types. Throw in void and std::nullptr_t, and you have the fundamental types. Everything else—classes, unions, arrays, enums, pointers, references, and functions—are the compound types. Finally, scalar types group the arithmetic types, enums, pointers, and nullptr_t. That’s your quick tour of C++ types taxonomy.
Link to Article


Subscribe

Listen to jawbreaker.io using one of many popular podcasting apps or directories.

Apple Podcasts Spotify Overcast Pocket Casts Amazon Music
← Previous · All Episodes · Next →