What is an Operator in C++ | Arithmatic,Logical and Relational Operators.

What is Operator in C++:


Operators are some special symbols used to perform a specific task on your data.
In C++ there are a variety of Operatoes that used to perform certain tasks.




Some Important Operators in C++
  • Arithmatic Operators
  • Logical Operators
  • Relational Operators
  • Bitwise Operators
  • etc
Catehories of Operators:
There are two types of operators.
  • Unary Operators
  • Binary Operators
A type of Operators that works with single operands is called Unary Operators.
Exemple:
                   -,+,--,++
           -a;
          a++;
         --a;

A type of operators that works with two operands is called Binary Operators.
Exemple:
                 +,-,*,/,%
             a+b;
             a-b;
            a/b;
           a%b;

Arithmatic Operators:


Relational Operators:

Logical Operators:




What is an Operator in C++ | Arithmatic,Logical and Relational Operators. What is an Operator in C++ | Arithmatic,Logical and Relational Operators. Reviewed by Shoaib Jameel on 3/04/2017 09:20:00 pm Rating: 5

No comments:

Advertisment

Theme images by mariusFM77. Powered by Blogger.