Operators and Expressions in C++

An operator, in general, is a symbol that operates on a certain data-type. For example, the operator + is the addition operator. It can operate on integer, character and real (float and double) numbers.

On the other hand, an expression is a combination of variables, constants and operators written according to the syntax of the language.

Types of Operators:

  1. Arithmetic operators
  2. Unary operators
  3. Increment and Decrement operators
  4. Relational operators
  5. Logical operators
  6. Assignment operators
  7. Conditional operators

You may also like...

Leave a Reply

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