Y
Hacker News
new
|
ask
|
show
|
jobs
by
n4r9
674 days ago
Some preliminary analysis suggests that if C is an integer greater than 1, C/C++ will always evaluate to 1 [0].
[0]
https://www.programiz.com/online-compiler/9fkHTct0Mybpu
1 comments
gpderetta
673 days ago
Actually it could be 2 or 1. IIRC the order of evaluation of operator parameters is unspecified (this used to be UB, now is merely unspecified).
/extremelypedantic
link
/extremelypedantic