C++ fundamental data types

C++ program in computer memory is instructions and data. Each data has a type like a character, a number, and each type has a size and a set of methods or actions we can perform on them, for example : calculation on numbers. In this chapter we will take a look at data types available in C++. C++ is a statically typed programming language, this means we must defined the type of each data we use in our code, and compile will check them when compiling. For that C++ offers us fundamental data types to use, they are built-in the C++ language, we can directly access to them. Each type has a size it takes in the memory. To use a data type we declare it in our code, to say that our program will need a space in memory to store a data of this type. Let see a few types, how to declare and initialize them.

1. boolean 2. char