<<< Integer Division | Index | Relational Operators >>> |
Yields remainder after integer division
Integer operands only
No rounding occurs
Examples:
(7 % 4) equals to 3
(17 % 5) equals to 2
int main() { int x = (7 % 4); // x == 3 int y = (17 % 5); // y == 2 return 0; }
<<< Integer Division | Index | Relational Operators >>> |