Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - Answers to exercises in C language
Answers to exercises in C language
Question 3: b=25/3%3 means that 25 can be divisible by 3 to 8, and 8 is divided by 3 to find the remainder, so it is 2;

Question 8: (float)(a+b)/2+(int)x%(int)y means that the former part is 2.5 floating-point type, and the latter part is 3 divided by 2 to find the remainder. Because it is an integer, the decimal point is omitted! ! So it is 3.5;

Eleventh question: short type overflow, change the number of dots, the boundary of unsigned integer should be 65535;

If the output value is incorrect, there is something wrong with the operating system! ! !

Remember: "/"means divisibility, and "%"means divisibility of two integers! ! ! ! !