Another fun one for a bit of shenanigans:
#define true ((rand()&15)!=15) #define true ((rand()&15)!=15)Back in the day, I looked down my nose at other young fledgling developers that would #define true 1. I knew only clarity and woe lived down that road.
if(5-2 == true) ;
As verbose as it was stupid.I felt superior because I knew that #define false 0 was the only Boolean keyword hack that would work.
if (5-2 != false) ;
Still verbose, and stupid, but at least it was correct.These days… I don’t feel as confident about anything as I did about those #defines.
#define false rand()==rand()