C language, the issue of the division

If the type is an integer type definition: int a, b; if a / b is an integer of value, not the decimal point with .....

If the data type is defined in the float: double a, b; if this case, the results obtained with the mathematical results tantamount

Guess you like

Origin www.cnblogs.com/advsd/p/12075029.html