Divide by two shaping
Yes, but it involves implicit type conversion of C, which is not recommended programming style. \ x0d \ x0d \ When a floating-point type is divided by an integer, the integer variable is first converted into a floating-point type, and then the division operation is performed, and the result is a floating-point type; \x0d\\x0d\ similar problems, the radical approach is to thoroughly understand how the implicit type conversion of C is carried out, such as integer promotion and so on; But I don't remember it clearly, so I recommend reading the relevant chapters in C (ARefenrecemanual). \x0d\\x0d\ But similar operations should be avoided when programming;