What is the behavior of integer division?
Asked 07 September, 2021
Viewed 1.9K times
  • 63
Votes

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?

6 Answer