Introduction
In the previous chapter, we looked at control flow, learning a number of ways in which we can manipulate the flow of execution through our applications. In this chapter, we're going to take a closer look at how we represent that information using different data types; specifically, the built-in data types provided by C++.
We've used a few of them previously; for example, we know that integers represent numbers, and strings represent words and characters, but let's go into more detail. The core set of types provided by C++ are the building blocks for any and all user-defined types that we'll create later down the line, so a good understanding of what we have available to us is very important. We'll start by looking at the data they store, how they are assigned, and their sizes. We can then move onto looking at type modifiers—keywords that allow us to modify their properties. A chart will be provided for future reference.
Next,...