« first day (1859 days earlier)      last day (1757 days later) » 

2:33 PM
int value = 500;
bool thing = false;
if (value > thing == false ? 500 : 255)
{
    printf("Hello");
}
^ prints "Hello"... is it because of precedence?
(answer is yes?)
 
2:45 PM
if (value > (thing == false ? 500 : 255))
 
right
ahhh, its doing if((value > thing) == (false ? 500 : 255)) otherwise
 
more ((value > thing) == false ? 500 : 255)
 
right
so, precedence
 
if ( ( value > ( thing == false ) ? 500 : 255 ) )
I like this game
that'd be a cool program to write: how many ways can you write an expression to get true
 
infinite
 
2:56 PM
maybe
 

« first day (1859 days earlier)      last day (1757 days later) »