0

What is the use of % symbol in c?

4th Dec 2017, 5:05 AM
rajmit kevadiya
rajmit kevadiya - avatar
2 Answers
+ 1
It is a math operator which returns the rest of a division. For example: 6%3 = 0, 9%7 = 2.
4th Dec 2017, 5:09 AM
Iago
Iago - avatar
+ 1
% is termed as modulus operator or remainder operator.It returns the remainder of operation performed by us . Example: 4%4=0,15%2=1 It is used in many logics of programs .
4th Dec 2017, 6:40 AM
Prathyusha Kottakota