| ▲ | Filligree an hour ago | |||||||||||||
Print x twice. Not all “side effects” care about order. Better yet, define an order for parameter evaluation. | ||||||||||||||
| ▲ | poppadom1982 42 minutes ago | parent [-] | |||||||||||||
You're missing the point. Volatile forces two loads of a value that may have changed in the middle. So the value of "x" may depend on the time/order of load. | ||||||||||||||
| ||||||||||||||