
C++ → Method call on nullptr
Let's take a look at a small code example when a method is called on an object that is initialized with nullptr .

C++ → C++ - Tutorial 002. Types, Variables and Arithmetic
C++, int, char, double, auto, nullptr
Each variable or expression has its own data type, for example, an declaration
int some_variable;
Indicates that the variable some_variable has an integer type int .
The declaration allows you to enter a variable in the program. This variable will have a certain type of data: integer, floating point, character in the case of basic data types, or custom type (data structure, class). The type of the variable defines the set of operations that can be performed on the variable. The declaration of a variable determines the allocation of the memory area that is required for it. And also the value of this variable, which from the computer's point of view will be a sequence of bits. The declaration of a variable also carries the name by which the programmer will refer to this variable in the program code.
In the above example, we have a variable that has a base integer type, with which arithmetic operations, comparison, assignment, etc. can be performed. Refer to the code in this code by this name by some_variable.
Timeweb
Let me recommend you the excellent hosting on which EVILEG is located.
For many years, Timeweb has been proving his stability.
For projects on Django I recommend VDS hosting
View Hosting