Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - void main(){ int x = 023; printf("%d ",x++); } What is the output result? thank you
void main(){ int x = 023; printf("%d ",x++); } What is the output result? thank you
The output result is: 19

Because your definition of x (int x = 023) is an octal number, the hexadecimal number corresponding to 10 is: 19.

Output in (%d) 10. X++ means taking the value of X (that is, the value of the expression x++) as 19, and then adding X to 1 becomes 20, so the final result is 19.

If you have any questions, please ask.