In this section, we will go through the concepts of assignment operator, shallow copy, deep copy and copy constructors in C++. Though they all may...
Let’s say we wish to take the user’s name as input and store it somewhere in C++. Now, the name can be of any size and we don’t exactly know the...
Part - 1 We have seen variable types so far which can hold integers (int), floating point numbers (float) and so on. So, what if we wanted a special...
References much like pointers allow us to pass objects to functions without making a copy of the object. This helps save memory and improves...
For normal functions, the definition and declaration are written in some .hpp and .cpp files respectively and whenever in code we need to call the...
When we declare a variable in C++ with const, it implies that its value will not change throughout the program. If we try to assign a new value to the...