What happens (behind the curtains) when this is executed?
int x = 7; x = x++;
That is, when a variable is post incremented and assigned to itself in one statement? I compiled and executed this. x is still 7 even after the entire statement. In my book, it says that x is incremented!
Your Answer
0 answers
Hot tools Tags
Hot Questions
What's the difference between eval, exec, and compile?
2025-12-30 14:22:20
ExecutorService, how to wait for all tasks to finish
2025-12-30 14:02:07
Add leading zeroes to number in Java? [duplicate]
2025-12-30 13:44:01
JQuery, Spring MVC @RequestBody and JSON - making it work together
2025-12-30 13:22:11
document.getElementById vs jQuery $()
2025-12-30 13:01:06
Popular tool
vc9-vc14 (32+64 bit) runtime library collection (link below)
Download the collection of runtime libraries required for phpStudy installation
VC9 32-bit
VC9 32-bit phpstudy integrated installation environment runtime library
PHP programmer toolbox full version
Programmer Toolbox v1.0 PHP Integrated Environment
VC11 32-bit
VC11 32-bit phpstudy integrated installation environment runtime library
SublimeText3 Chinese version
Chinese version, very easy to use
Hot Topics
Douyin level price list 1-75
20416
7
20416
7
wifi shows no ip assigned
13573
4
13573
4






