Data Types
As we've seen throughout the book so far, we store data in variables—a user's name, age, or the price of food items. Given that these are different types of data—alphabetical, numerical, and so on, we store them in different variable types. It's these types that we're going to be taking a look at now, as it's important to use the correct variable type for the data you want to store.
Type Modifiers
Before we look at the fundamental data types themselves, however, let's quickly look at type modifiers. Initially mentioned in Chapter 1, Your First C++ Application when we looked at keywords, type modifiers allow us to change the properties of integer types. The following modifiers are available to us:
signed
: Thesigned
keyword specifies that our variable can hold both positive and negative values. This increases the maximum lower value since we can now go negative, but doing so decreases the maximum upper value. This...