Jump statements in c++: break, Continue and goto

Jump statements are used to interrupt the normal flow of a program. Jump statements transfers controls from one point to another point in the program due to some specified code while executing.There are three jump statements in c++BreakContinueGotoBreak  Statement Break statement is used [...]

Looping Statements in C++: For, While and Do-While

Loop means iteration. In c++ loops are used to repeat certain block of code until a condition is satisfied. In c++ we use three loop statements:whiledo-whileforWhile Loop While Loop is a condition based and entry controlled (means the condition is tested before entering the loop body) loop. It [...]

Decision making statement in c++: If, else, nested if,else if

Decision making statements are those statements which are used to write conditions or decisions to control the flow of program.Ex: if-statement, switch, while etc.if - statementif-statement is simple decision making statement. It is used to control the flow and execute any particular statement depending [...]

Different Types of Operator in C++

In C++ Operators can be of many types some commonly used operators are given belowArithmetic Operators Arithmetic operators are used to perform mathematical operations+ (Addition or Unary plus)- (Subtraction or Unary minus)* (Multiplication)/ (Division)% (Modulo Division)Ex: If a and b are integers, [...]

Basic Structure of C++

Basic Structure:#include<header file> // Preprocessor Directivevoid main()    //Program execution starting point {     statement; } Example:#include<iostream.h>#include<conio.h>void main(){      cout<<"hello";}  Preprocessor [...]

Variables and Data Types In C++

VariableA variable is an identifier that denotes a storage location, which content can be varied during program execution. A variable [...]

Introduction to Programming in C++

C++ is Object oriented programing language. It was developed at AT & T Bell laboratories in the early 1980 in USA by Bjarne stroustrup. [...]

Page 1 of 6123456Last