Question & Answer » GK Questions » What is the Difference Between / and % operators?

What is the Difference Between / and % operators?

Here we will learn about the difference between / and % operators. Click here to know more about such interesting topics.

Question: What is the Difference Between / and % operators?

Answer: These operators are arithmetic operators. They are used in mathematical expressions in many programming languages like python, java, C etc. / is known as division operator which performs division and % is known as modulus operator, it is used to find the remainder. For eg : We have two operands a = 9, b = 3, and result of a/b = 3 whereas result of a%b = 0.