0.5%2= In c++
This involves the forced conversion of data. In 0.5%2, 0.5 is floating point, 2 is integer and% is remainder. When making this budget, it will be forced to convert 0.5 into an integer, and after 0.5 is converted into an integer, it will become 0, so the result of 0.5%2 is equal to 0%2, and the result is 0. Hope to adopt! ! !