Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - Let the variables I and J be integer variables and k be long integer variables. I was assigned 32763, and J and K were assigned 5 respectively. If the following statement is executed next, _ can be ex
Let the variables I and J be integer variables and k be long integer variables. I was assigned 32763, and J and K were assigned 5 respectively. If the following statement is executed next, _ can be ex
Let the variables I and J be integer variables and k be long integer variables. I was assigned 32763, and J and K were assigned 5 respectively. If the following statement is executed next, _ can be executed correctly. God, I changed it three times. Why hasn't the answer changed?

Try again one last time.

The first three overflows and vc overflows will not be executed.

The maximum int is 32767.

And a and b add up to 32768, so it overflows.

C, because in C language, an address is first opened to store the value of the operation, and then the value is assigned to the previous one. I in I+J+K in C is an integer, so the address where the stored result is opened is also an integer instead of a long integer, so C is also an overflow, and D will not have this problem.