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:
- Arithmetic operators
- Unary operators
- Increment and Decrement operators
- Relational operators
- Logical operators
- Assignment operators
- Conditional operators
0 comments:
Post a Comment