C++ Preprocessor Directives

C++ Preprocessor Directives: A C++ preprocessor directives are the lines that are included in a program which begins with the # and it is different from the typical source code. …

Read more

C++ Templates

C++ templates: The c++ template can be defined as a blueprint or formula for creating a generic class or a function. Templates are the foundation of generic programming, which involves writing …

Read more

Namespaces in C++

Namespaces in C++: The namespace in C++ can be used to overcome the difficulty of using the same name for many times. And is used as additional information to differentiate …

Read more

C++ Files and Streams

C++ Files and Streams: In the C++ files and streams the operations are performed by using streams too. By using the file handling we can store our data in the secondary …

Read more

Multithreading in C++

Multithreading in C++ is a specialized form of multitasking in which it allows your computer to run two (or) more programs concurrently.  The thread classes and related functions are defined …

Read more

Dynamic Memory Allocation in C++

Dynamic Memory Allocation in C++ can be defined to perform memory allocation manually by the programmer.  The dynamically allocated memory is allocated on Heap. All variables declared inside the function …

Read more

Exception Handling in C++

Exception Handling in C++: The exception handling in C++ is the process to handle runtime errors.  A C++ exception is a response to an exceptional circumstance that arises while a program …

Read more

C++ Enumeration (enum)

C++ Enumeration (enum): It is a user-defined data type which can be assigned with some limited values. These values are defined by the programmer at the time of declaring the enumerated …

Read more

C++ Structs

C++ Structs can be defined in such a way that classes and structs are blueprints that are used to create the instance of a class. (or) A Struct is a …

Read more

C++ Encapsulation

C++Encapsulation: It is a process of wrapping of data and methods in a single unit. It is achieved in the C++ language by the class concept. The Combining state and …

Read more

C++ Abstraction

C++ Abstraction: Abstraction shows important things to the user and hides internal details. And hiding of data is known as “data abstraction“. Data abstraction can be used to provide security for …

Read more

C++ Polymorphism

C++ Polymorphism: Polymorphism is derived from the Greek words. Poly means “many” and “morphism” means “forms” i.e many forms. Polymorphism means more than one form. The operation depends upon the types …

Read more

Types of Inheritance in C++

Types of Inheritance in C++: As we have already learned regarding inheritance in the previous articles. Let us learn about the different types of inheritances present in C++. Types of Inheritance …

Read more

C++ Inheritance

C++ Inheritance: Inheritance is the process in which the objects of one class can acquire the properties of another class. And also it supports the concept of hierarchical classification. And …

Read more

C++ Overloading

C++ overloading can be defined as a technique to use a single identifier to define various methods or techniques of a class that differs in their input and output parameters. …

Read more

Destructors in C++

The destructors in C++ can be defined as a member function which destructs or deletes an object. The destructor names are the same as the class name but they are …

Read more

C++ Constructors

C++ Constructors: Constructors in C++ can be defined as a special member method which will be called implicitly (automatically) whenever an object of a class is created. In other words, …

Read more

OOPs Concept in C++

OOPs Concept in C++: The major purpose of C++ programming is to introduce the OOPs (Object Oriented Programming language) concept in C++ language. Object-oriented programming is a paradigm in which it …

Read more

C++ this Pointer

C++ this Pointer: In the C++ language, this is a keyword that refers to the current instance of the class. There are three main uses for using this keyword. They …

Read more

C++ Pointer Arithmetic

C++ Pointer Arithmetic: This can be used to perform arithmetic operations on pointers. And there are totally four arithmetic operators present in C++ are ++, – -, + and -. The …

Read more

Pointer to Pointer in C++

Pointer to Pointer in C++: This can be defined as a  form of multiple indirections or a chain of pointers. Normally, a pointer contains the address of a variable. When we …

Read more

Pointers in C++

Pointers in C++ can be defined as a variable whose value points to the address of another variable. Pointers can dynamically allocate the memory. While the pointer variable holds the …

Read more

String manipulation in C++

String manipulation in C++: The manipulation of strings in C++ can be defined as we have already learned that C++ will not support the built-in string type. So, we have …

Read more

String Operations in C++

String Operations in C++ can be used to make the work easier by using the functions in short form of commands. And we are having different types of operations in …

Read more

String Functions in C++

String Functions in C++: There is a different type of functions on strings. They are as follows: Input Functions Capacity Functions Iterator Functions manipulating Functions And these functions of strings …

Read more

C++ Strings

The C++ strings are nothing but used for representing a sequence of characters as an object. String class stores the characters as a sequence of bytes. A string is described …

Read more

Types of Arrays in C++

Types of Arrays in C++: C++ allows us to create multidimensional arrays. There are different types of arrays in C++. They are as follows: One Dimensional Array Two dimensional Array …

Read more

C++ Arrays

The C++ arrays can be defined as a collection of items located stored at contiguous memory locations. Here, contiguous memory location means just after the first element of an array, …

Read more

C++ Function Overriding

C++ Function Overriding: It defines the same function as defined in its base class. This is known as “function overriding“. This was used for achieving run time polymorphism. It enables …

Read more

C++ Function Overloading

The C++ function overloading can be defined as if two (or) more function shaving the same name but different arguments are known as “function overloading“. And the overloaded functions must …

Read more

Member Functions in C++

Member Functions in C++: Driving programs into a function are one of the major principles of programming. These are known as “Member functions” in  C++. They have their deceleration’s inside the …

Read more

C++ Functions

C++ Functions: The C++ functions can be defined as a group of statements that perform a particular task. And in every C++ program, there will be at least one function called …

Read more

C++ Nested Loops

C++ Nested Loops: In C++ nested loops are nothing but using a loop inside another loop is known as “Nested loops”.  C++ allows nearly 256 levels of testing.  Here, the …

Read more

C++ Infinite Loop

C++ Infinite Loop: This loop can also be called as “endless loop”. This loop in C++ can be defined as a piece of code which lacks the exit such that …

Read more

C++ Do-While Loop

C++ Do-while loop: In this loop the execution is terminated based upon the test condition. These are similar to while loops. We can also say that this loop is an exit-controlled …

Read more

C++ While loop

C++ While loop: The C++ while loop repeats the statement until the condition is true. In this loop, we do not know no. of loops in before like the for …

Read more

C++ for loop

C++ for loop: A C++ for loop can be used to iterate a part of a program structure several numbers of times. If the no.of iterations are fixed then it …

Read more

C++ Loops

C++ Loops: In C++ loops are used when you need to execute a block of code several times. In loops, a statement will be executed once and the loop will be …

Read more

C++ Switch Statements

C++ Switch statements: The C++ switch statements allows us to test multiple conditions for the if statement. These statements are the substitute for long if statements that compare a variable to …

Read more

C++ Nested if Statements

C++ Nested if statements: In this statement, it will be targeting the another if statement. And in simple words, we can also say that if statement inside another if statement. You …

Read more

C++ if else statement

C++ if else statement: The C++ if else statement helps when if statement executes false we can use the else statement for executing. It is also used to control the flow …

Read more

C++ if statement

C++ if statement: The C++ if statement is a simple decision-making statement. It is used to check whether a certain block of statements will be executed (or) not. So, if a …

Read more

C++ Decision Control Statements

C++ Decision Control Statements are nothing but the decision making statements that decides the order of execution of statements based on conditions. These are also called as “Control Statements“. While …

Read more

Storage Classes in C++

Storage Classes in C++: The storage classes in C++ defines the scope and lifetime of a variables (or) functions within a program. Here, Lifetime refers to the period during which …

Read more

Variable Scope in C++

Variable Scope in C++: A variable scope in C++ is nothing but the scope of a variable can be defined as the extent of the programming code in which the code …

Read more

C++ Constants/ Literals

C++ Constants/ Literals: In C++ Constants/ Literals are nothing but they refer to fixed values. Their values cannot be changed once they are assigned. Constants can be of any of …

Read more

Operators in C++

Operators in C++ can be defined as a symbol that is used to perform mathematical (or) logical operations. And in this language, we are having a rich set of built-in …

Read more

C++ Keywords

C++ Keywords: Keywords in C++ are nothing but a reserved words in C++ Library. We cannot use them as a variable names, constant names etc. C++ Keywords List List of …

Read more

C++ Variables

Variables in C++ can be used to store data in the memory location and whose value can be changed during the program execution. C++ variables In C++ variables are case …

Read more

C++ Data Types

C++ Data Types: In C++ Data types are nothing but they used to store information in the computer memory with different data types. When a variable declares it is necessary …

Read more

Basic C++ Input Output

Basic C++ Input  Output: cin, cout, endl are used in the streams.  A stream is nothing but a sequence of bytes (or) flow of data. Let us know in detail …

Read more

C++ Tokens

C++ Tokens: Tokens in C++ can be defined as the smallest building block (or) the smallest unit in C++ program. Each word and punctuation can be referred to as a …

Read more

C++ Manipulators

C++ Manipulators: C++ Manipulators are nothing but functions that are designed to be used in the conjunction with the insertion(<<) and extraction(>>) operators on stream objects. C++ Manipulators Let us …

Read more

Comments in C++

Comments in C++: Like all other programming languages we can also represent in C++. Comments are nothing but the explanatory statements that you can include in the code. Single Line Comments: …

Read more

Streams in C++

Streams in C++: In this language input-output (io) is based on streams. C++ streams are nothing but the bytes which are flowing in and out of the programs. The input …

Read more

C++ Features

C++ Features: In this, we are going to learn the features of C++ i.e. the main features which make C++ more powerful than other languages. Features of C++ There are …

Read more

C++ Installation and setup

C++ Installation and setup: Before starting and going deep into the C++ program, let us know about the C++ installation and setup for compiling and executing the programs. C++ Installation …

Read more

Difference Between C and C++

Difference between C and C++: In this post, we are going to learn the differences between C and C++ programming languages. C programming language C++ Programming language It is a procedural …

Read more

C++ Introduction

C++ Introduction: In this C++ introduction, we are going to have a brief idea regarding this language. C++ was originally developed by “ Bjarne Stroustrup” in 1980 at “bell laboratories” …

Read more