C++ Tutorial for Beginners 9: Integer Variable Types

There are a whole bunch of different types of integer in C++, and we need to select the right one based on the size of the number we want to store and whether it's signed or unsigned. In this tutorial we'll take a look at int, short int and long int -- signed and unsigned. We'll also look at what happens when you select the wrong type for your number.