Basic Structure of C++ Program

By | September 23, 2018

Basic Structure of C++ Program

 

#include<iostream>          //header file

using namespacestd();

int main()                      //main function

{

//function body

};

 

Operators in C++:

There are three types of operators:

1.Arthematic Operators:

Arithmetic Operators are

 Addition Operator

*  Subtraction Operator

/  Division Operator

% Modulus Operator

2.Logical Operators:

Logical Operators are:

&&    Logical  And

||       Logical   OR

3.Relational Operator:

<

>

<=

>=

!=

==

 

Category: C++

Leave a Reply

Your email address will not be published. Required fields are marked *