I recently noticed that the following expression compiles in my compiler (Clang):
float a;
if (0.0 < a < 1.0) { ... }
Does this do wh
Maybe we can think in this way(just for fun):
if(0.0
==>
if((0.0
think :
if 0.0 < a == true
, then (true <1.0) == false
!
else if 0.0 < a == false
,then (false <1.0) == true
!
So I can translate if(0.0 to
if(!(0.0
Interesting , right?