Tutorials

Tutorials

C++ Polymorphism

C++ Polymorphism is the capability of objects of different types to respond to functions of the same name. The program does not know the actual object type in advance. The word polymorphism is a mixture of two works ploy and morphism where poly means many and morphism means forms. It is applicable when the classes … Read more

Tutorials

C++ Inheritance

C++ Inheritance is used to create a new inherited class from the reuse of the existing class. The new class inherits all the properties and behavior of the existing class. It is the best example of an object-oriented concept in C++. In inheritance, the existing class is known as the parent class or base class … Read more

Tutorials

C++ Classes And Objects

C++ Classes and objects are used to support object-oriented concepts. This is the key feature of the c++ programming language.  In this concept, the code is divided into classes and objects. It is useful in terms of reusability and understanding of the code. What are C++ classes and objects? In a real-world example, we can … Read more

Tutorials

C++ Arrays

C++ Arrays are the collection of similar data stored in consecutive memory locations. Arrays are handy when dealing with a large amount of similar data.   Suppose a user wants to store the marks of 100 students and declare 100 variables. It does not make sense. This process can be simplified by using an array. … Read more

built in function in cpp
Digital Trends, Tutorials

C++ Built-in Functions

C++ Built-in functions are the ready-made library functions. These are the part of the c++ programming language. C++ offers a large number of built-in library functions to solve programming problems faster and easier. There are many libraries in c++ with have different sets of functions like iostream, cmath, ctime, etc. We don’t need to declare … Read more

Tutorials

C++ User-defined Functions

Function in c++ is a unique named block of code to perform certain tasks. All the statements written in the function body are executed when a function is called by its name.  The control moves to the function body when a programmer calls a function. After that, all the statements inside the function are executed. … Read more

Tutorials

C++ goto Statement

Goto statement in c++ is used to shift control from goto to a certain location of the program by using a label.  A label is a name given to a specific line of the program where the control is going to shift. It is created by the goto identifier followed by a colon “:” Syntax: … Read more

Tutorials

C++ Continue Statement

C++ continue statement provides a way to instantly jump to the beginning of the loop for the next iteration. After continue statement, the control is immediately shifted to the beginning of the loop by ignoring followed statements.  It is mostly used within for, while, do-while loops or switch statements. Syntax: continue statement: Flow Chart: Continue … Read more

Tutorials

C++ Break Statement

C++ Break statement provides a way to instantly jump out of the loop. After the break statement, the control is immediately shifted to a statement just below the enclosing loop or switch. It is mostly used within for, while, do-while loops, or switch statements. Syntax: Break statement Flow Chart: Break Statement Example: Break statement Output … Read more

Tutorials

C++ do-while Loop

C++ do-while loop is used to execute one or more statements while the condition remains true. The major difference between a while loop and a do-while loop is: While the loop executes its statements after the condition if the condition becomes false at the beginning the loop is terminated. On the other hand, the do-while … Read more

Scroll to Top