By the end of 2018, there are several hundred programming languages in the world, a minority of them are highly specialized languages, such as, for example, Ada (a language invented by the US Air Force to control ballistic missiles) or Fortran, mainly used in scientific software development. But most of them are publicly available for understanding and study and are widely used.
Data types in computer science are a structural and dimensional characteristic of an allocated memory cell, in which some value can be placed for further operations. One such type is the integer (int) type. This is an integer data type. That is, only an integer (0, 1, 2, 256, 10000, and so on) can be placed in a reserved integer cell.
The range of values that can be put in an integer cell differs in other programming languages and on different processors, for example, in the languagePascal programming ranges from -32768 to 32768. Attempting to "put" data over or under this range will cause a "data overflow error".
Characteristics of the integer data type
On 32-bit architectures, they range from −2,147,483,648 (-231) to 2,147,483,647 (231 −1)
- Store as an integer.
- The range varies depending on the choice of programming language and architecture.

There are integer types, without signs. For example, unsigned int in C. Misuse of these data types can lead to errors.
There are also various variations of the integer type, such as:
- short int - provided to reduce the amount of memory allocated for the needs of the programmer.
- long int - on the contrary, it was created for those who are afraid that during the course of the program there is a risk of "flying out" of the usual int and getting a "data overflow error".
Types integer, real, dint (in Pascal language) refer to mathematical data types. This means that it is possible to perform mathematical operations - addition, multiplication, subtraction, division.
Characteristics of type integer real
To store a real number in RAM, six bytes of memory are allocated, so calculations are always performed with finite precision, depending on the format of the number. Real data is stored as a floating decimal point integer.
Other data types in popular programming languages

Char - character data type, can store 1 character from the ASCII character table. It takes 1 byte and is interpreted as an ASCII character.
String - string data type, usually represented by an array of char objects. Usually, the capabilities of modern languages allow you to perform a wide variety of actions on objects of type string, for example, concatenation (gluing), deleting strings, replacing characters in a string.
Boolean - Boolean data type. A primitive data type in computer science that expresses 2 states. Very useful when you need to express only 2 states in a program (for example, write a function that would return only true or false).
Type casting
Programming languages allow you to "cast" types to each other. For example, by initializing a variable of type integer, we can later cast it to type double, that is, allow the compiler to overwrite it and treat it later as a floating point number.
But not all data types can be converted so easily. For example, we will not convert string to integer in any way, the compiler simply will not understand our actions. There are also special cases of compilers and programming languages. For example, Pascal cannot convert integer to integer real because only real supports division.

Modern languages like C don't have these problems, most often a programmer can painlessly convert intuitively similar data types like int. double,long int and so on. Moreover, in dynamically typed languages it is even possible that the char data type is cast to int!
This is allowed because the compiler, instead of working with a character, takes its serial number from the ASCII table and already uses it to interact with int. In strongly typed languages such as C++ or C, this is of course not possible.

These are the basic data types in computer science. In modern programming languages, variables are often no longer just an allocated place in RAM, but entire "objects" or "classes", which greatly expands the possibilities of operations with them.
To understand how such complex structures are stored, you need to delve into such an inexhaustible topic as object-oriented programming, the most modern tool for creating powerful, extensible and maintainable programs for years.