0
What is the use of % symbol in c?
2 Réponses
+ 1
It is a math operator which returns the rest of a division. For example: 6%3 = 0, 9%7 = 2.
+ 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 .