» An operator is a symbol that is used to perform mathematical or logical operation.
» There are common types of operators are given which are use in C++ language.
Arithmetic Operators
An Arithmetic operator is a mathematical operator that performs a calculation on them.
+ , - , * , / , %
int add=20+20; int sub=20-10; int mul=20*10; int div=20/10;
output:- 40
10
200
2
Relational Operators
An operator that defines some kind of relation between two entities.
< , > , = , !=
int a>b; int a==b; int a=b; int a!=b;
Logical Operators
Logical operator returns the boolean value true or false
||(OR) &&(AND) !(NOT)
int a||b; int c&&d; int E!=b;