Greetings, folks!
\nIn this post I’m going to tell you which are the basic types of data in C++, in a simple way, I do not want to be confusing and ruin anyone’s life.<\/p>\n
In C++, a data type refer to the system used for declaring variables or functions. The most simple way to explain it: every type of variable have a different storage occupied, and also the interpretation of the bit pattern change in every data type.<\/p>\n
The most common types are “int”, “float” and “char”.<\/p>\n
Let’s explain it quickly and simple as possible, because this is just and introduction to this topic:<\/p>\n
Int refers to integer number values, the storage for this type is 4 bytes.
\nFloat is for floating numbers values, you know, number values with points, like 3.1416 or 1.7071, the storage occupied for this data type is 4 bytes.
\nChar is for characters arrays, this means that you can call a char variable declared as a word or phrase.. The storage is 1 byte.<\/p>\n
In order to make this\u00a0more explainable, here you have an example:<\/p>\n