The Operator % can be applied to?
a) Float Values
b) Double values
c) Integral values
d) All of these
Answers
Answered by
0
Answer:
Correct answer is (d) All of These .
Explanation:
Modulus operator (%):
The operator that return the remainder of any two numbers is known as modulus operator and it is represented by % sign in computer programming. Normally it is use for two purposes, First to restrict a value to a specific range and second for detecting even/odd numbers.
Example: 4%2 return remainder 0 and 5%2 return remainder 1.
Answered by
0
The Operator % can be applied to Integer values
Option (c)
Explanation:
- 'Modulus Operator' (%) is a 'binary operator' that used two operands. The output of the 'Modulus operator' is remainder by dividing two operands on which 'modulus operator' is applied.
- The 'modulus operator' (%) when used with integer the output value will be the remainder. But in the case of floating & double type values for operands in modulus operator, we will get floating-point value as quotient and the remainder value will always be void.
To know more
What is binary operator overloading in c++?
https://brainly.in/question/1755408
Difference between unary operator and binary operator in java
https://brainly.in/question/11498017
Similar questions