The this pointer holds the address of current object, in simple words you can say that this pointer points to the current object of the… [Read More]
Destructors in C++
A destructor is a special member function that works just opposite to constructor, unlike constructors that are used for initializing an object, destructors destroy (or… [Read More]
Constructors in C++
Constructor is a special member function of a class that initializes the object of the class. Constructor name is same as class name and it… [Read More]
OOPs Concepts in C++
Object oriented programming is a way of solving complex problems by breaking them into smaller problems using objects. Before Object Oriented Programming (commonly referred as… [Read More]
Strings in C++
Strings are words that are made up of characters, hence they are known as sequence of characters. In C++ we have two ways to create… [Read More]
Pointers in C++
Pointer is a variable in C++ that holds the address of another variable. They have data type just like variables, for example an integer type… [Read More]
Passing Array to Function in C++
You can pass array as an argument to a function just like you pass variables as arguments. In order to pass array to the function… [Read More]
Multidimensional Arrays in C++
Multidimensional arrays are also known as array of arrays. The data in multidimensional array is stored in a tabular form as shown in the diagram… [Read More]
Default Arguments in C++ Functions
The default arguments are used when you provide no arguments or only few arguments while calling a function. The default arguments are used during compilation… [Read More]
Arrays in C++
An array is a collection of similar items stored in contiguous memory locations. In programming, sometimes a simple variable is not enough to hold all… [Read More]
C++ Recursion with example
The process in which a function calls itself is known as recursion and the corresponding function is called the recursive function. The popular example to… [Read More]
goto statement in C++ with example
The goto statement is used for transferring the control of a program to a given label. The syntax of goto statement looks like this: goto… [Read More]
Functions in C++ with example
A function is block of code which is used to perform a particular task, for example let’s say you are writing a large C++ program… [Read More]
Break statement in C++ with example
The break statement is used in following two scenarios: a) Use break statement to come out of the loop instantly. Whenever a break statement is… [Read More]
Continue Statement in C++ with example
Continue statement is used inside loops. Whenever a continue statement is encountered inside a loop, control directly jumps to the beginning of the loop for… [Read More]