+ 1
What do this operator? ( % )
3 Respuestas
+ 3
It is the modulus (pronounced as mo-du-lo) operator.
As others have told, it tells you the remainder.
And do remember that it works only with int data type in cpp.
+ 2
It is the modulo operator. It returns the REMAINDER after a division operation.
+ 2
for example, 5%2 would be 1.