Wednesday, April 6, 2016

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

0 comments:

Post a Comment