What is the behavior of integer division?

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 Answers
6

Leave a Comment