Posts

Showing posts with the label Operators

5.Operators

Image
Operators are special symbols which represents computation. They are applied on operand(s), which can be values(constants) or variables. Same operator can behave differently on different data types. Operators when applied on operands form an expression Operators are categorised as Arithmetic Operators Comparison (Relational) Operators Assignment Operators Logical Operators Bit wise Operators Membership Operators Identity Operators Arithmetic Operators( Mathematical) Symbol Description Example 1 Example 2 + Addition 55+45 100  “Good” + “Morning” GoodMorning -   Subtraction 55-45 10 30-80 -50   *   Multiplication 55*45  “Good” * 3 GoodGoodGood   /   Division 17/5 3 17/5.0 3.4 17.0/5 3.4 28/3 9   %  Remainder...