math - What is the behavior of integer division in C? - Stack Overflow
For example, int result; result = 125/100; or result = 43/100; Will result always be the floor of the division? What is the defined behavior? ... Dirkgently gives an excellent description of integer division in C99, but you should also know that in C89 in...