Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - Given i=5, what is the decimal value of the integer variable I after writing the statement i+=0 12?
Given i=5, what is the decimal value of the integer variable I after writing the statement i+=0 12?
In C language, there are three ways to write constants: decimal number 1 1, hexadecimal number 0xb, and octal number 0 13. So in your question, i+=0 12 is equivalent to I+( 1 * 8 1+2 * 8 0). So the answer is 15.