196k views
5 votes
Discuss how does a Modulus Operator function

User Jader Dias
by
5.4k points

1 Answer

6 votes

Answer:

Modulus operator are useful in many circumstances and it is commonly used to generate the random number. It basically reduce the number into random number in a small range.

It also describe that whether, the one number is a factor of another or not.

In C language, the modulus operator provide the remainder after diving the greater value with the smaller value. If the smaller number are divided by the larger number then, the quotient become zero.

User Takenia
by
5.8k points