4. What does the modulus operator % do ? What will be the result of 7.2 % 2.1 and 8 % 3 ?
Modulus operator returns the remainder when dividend is divided by the divisor. 7.2%2.1 = 0.9 8%3 = 2
Modulus operator returns the remainder when dividend is divided by the divisor. 7.2%2.1 = 0.9 8%3 = 2
Operators that act upon two operands are referred to as Binary Operators. Examples of arithmetic binary operators are 4+20, 4*8, 7/3 etc.
3. What are binary operators ? Give examples of arithmetic binary operators. Read More »