+ 1

What is the difference between integer division and modulus division in c++

C++ Programming

1st Feb 2017, 6:29 PM
Dadeboe Perez Kwame
Dadeboe Perez Kwame - avatar
2 ответов
+ 6
Integer division returns the quotient portion of a value, and modulus division returns the remainder.
1st Feb 2017, 6:41 PM
Mark Foxx
Mark Foxx - avatar
+ 3
interger returns how many times the value can be devided by the next number like 25/5 = 5. Modulus returns what is left like 25%4 = 1.
1st Feb 2017, 7:09 PM
Andre van Rensburg
Andre van Rensburg - avatar