C++ Storage Classes
The C++ variables are divided into 4 major storage classes which can change the scope/lifetime of the variables. In this article, you will learn about… Read More »C++ Storage Classes
The C++ variables are divided into 4 major storage classes which can change the scope/lifetime of the variables. In this article, you will learn about… Read More »C++ Storage Classes
The C++ programming language have scope set for variables depending on where it is declared. You can use variable with global scope anywhere in the… Read More »C++ Global vs. Local Variable
The C++ functions are of many types, but we broadly classify them into four categories – functions that return a value, function that does not… Read More »C++ Function Types
The C++ functions are user-defined named block of code that performs a specific task. The function takes parameter or no parameters, it may return a… Read More »C++ Functions
There are three ways to break a control statement – break, continue and goto statements. In this article, you will learn about these statements in… Read More »C++ Breaking Control Statements
The do-while is another type of loop supported by C++ language. In the case of while loop and for loop – three expressions are compulsory.… Read More »C++ Do-While Loop
A while loop is another kind of loop control structure. The loop has initial condition and a test condition to pass before the actual loop… Read More »C++ while Loop
The switch-case statements are similar to if-else-if construct – a multiple decision maker. It allows you to choose a constant (a switch) that matches with… Read More »C++ switch-case Statements
The if-else statement is a conditional statement with an optional else. The if statement executes a block of statements is the condition is true, but… Read More »C++ if-else Statements
The C++ If statement is a conditional statement. The program executes a block of code only if condition is satisfied or true. This changes the… Read More »C++ If Statements