The process of calling a function by itself is called recursion. Recursion is frequently used in mathematics to solve a complex problem by dividing it…
Storage class of a variable defines the lifetime and visibility of a variable. Lifetime means the duration till which the variable remains active and visibility…
Namespace is used to define a scope where identifiers like variables, functions, classes, etc are declared. The main purpose of using a namespace is to…
In C++, this pointer is used to represent the address of an object inside a member function. For example, consider an object obj calling one…
Array is a collection of data of same types stored in sequential memory location. It is a linear data structure, where data is stored sequentially…
Function is a logically grouped set of statements that perform a specific task. For example, a function sort() may sort a group of data. Every…
Templates allow programmer to create a common class or function that can be used for a variety of data types. The parameters used during its…
In C++, operators like ‘+’, ‘-‘ have specified functions for native data-types. For example, division operator “/” divides two integers when used as a /…
Variables are the name to memory space in the computer where we can store data of certain types. They are important component of any programming…
Inheritance is the process of inheriting properties of objects of one class by objects of another class.
A loop inside another loop is called a nested loop. The number of loops depend on the complexity of a problem. Suppose, a loop, outer…
Exceptions are runtime anomalies that a program encounters during execution. It is a situation where a program has an unusual condition and the section of…
A C++ program can structurally be divided into different sections. Most sections are present by convention for developers to better understand a program. But there…
In C++ programming, loop is a process of repeating a group of statements until a certain condition is satisfied. Like while loop, for loop is…
In C++ programming, loop is a process of repeating a group of statements until a certain condition is satisfied. Do-while loop is a variant of…
The switch…case statement is a multiple branching statement where the control is transferred to one of the many possible conditions by checking the value of…
In every programming language including C++, loop is a process of repeating a group of statements until a certain condition is satisfied. While loop is…
While writing computer programs, we need to check certain condition to instruct the program to branch accordingly. Like most of the programming languages, C++ has…
Inheritance is the process of inheriting properties of objects of one class by objects of another class.
Inline function is a function which when invoked requests the compiler to replace the calling statement with its body. A keyword inline is added before…
Inheritance is the process of inheriting properties of objects of one class by objects of another class.
Biologically, Inheritance is a term which means acquiring characters of parents by their offspring. Children often seems to have traits that their parents have like…
Inheritance is the process of inheriting properties of objects of one class by objects of another class. The class which inherits the properties of another…
If more than one functions having same name but differing in terms of number and types of argument it takes is used in a class,…