Featured

1.1 Intro to c++

C++ is a general-purpose case-sensitive free-form programming…

Read More »
1.2 Advantages & Disadvantages

Advantages1. vendor-neutral: the C++ standard is the…

Read More »
3.2 Variable scope

refers to where variables is declared. It…

Read More »
3.3 Constants - Literals

Constants refer to fixed values in the…

Read More »
3.4 Variable Storage Classes

auto The default class. Automatic variables are…

Read More »
3.5 Operators

An operator is a symbol. Compiler identifies…

Read More »
4.1 Arrays

Array is a fixed size collection of…

Read More »
4.2 String

A string is simply an array of…

Read More »
4.3 Pointer

Pointer is a variable that stores the…

Read More »
4.4 Structure

In Array we can store data of…

Read More »
4.5 Reference

References are another variable type of C++…

Read More »
4.6 Enumration and typedef

C++ allows us to create own own…

Read More »
5.1 cout (output stream)

On most program environments the standard output…

Read More »
5.2 cin (input stream)

In most program environments the standard input…

Read More »
5.3 cerr (error stream)

The predefined object cerr is an instance…

Read More »
5.4 clog (log stream)

The predefined object clog is an instance…

Read More »
6.1 Conditional branching - if

if statementAn if statement contains a Boolean…

Read More »
6.2 Conditional selection - switch

A switch statement is used instead of…

Read More »
6.3 Loops - while & for

while loopThe while loop calculates the expression…

Read More »
6.4 Break and Continue

Break statementBreak statement is usually used to…

Read More »
6.5 Random number

C (and by extension C++) comes with…

Read More »
7.1 Function Basics

A function is a group of statements…

Read More »
7.2 Declaration call & argument

Function DeclarationA function declaration tells the compiler…

Read More »
7.3 Inline function

Calling a function generally causes a certain…

Read More »
7.4 Recursion

Recursion is a programming technique that allows…

Read More »
8.1 Classes Basics

Classes are an expanded concept of data…

Read More »
8.2 Constructor - Destructor

ConstructorA constructor is a special kind of…

Read More »
8.3 Friend Function

A friend function of a class is…

Read More »
8.4 Inheritance

Inheritance is one of the key feature…

Read More »
8.5 Function overloading

You can have multiple definitions for the…

Read More »