Which of the following operator takes only integer operands?
A.+
B.*
C./
D.%
Answers
Answered by
5
Hey mate
Option D is the right answer
Explanation --- Two integers are taken to be input
Option D is the right answer
Explanation --- Two integers are taken to be input
Answered by
0
% operator takes only integer operands
Modulo operator %
- The modulo operator is an arithmetic operator indicated by %. The remainder of an integer division is formed by the modulo division operator.
- The modulus operator finds the remainder of the integer by dividing the numerator by the denominator. The residual is always a single integer number.
- When we want to compare a number to the modulus and get the equivalent number confined to the Modulus range, we use the modulo operator.
Similar questions
Social Sciences,
7 months ago
Math,
7 months ago
Computer Science,
1 year ago
Computer Science,
1 year ago
Math,
1 year ago