Weird constants
Posted
by Quassnoi
on Stack Overflow
See other posts from Stack Overflow
or by Quassnoi
Published on 2009-02-06T21:38:01Z
Indexed on
2010/06/17
3:53 UTC
Read the original article
Hit count: 173
I've seen these in real code:
#define SCREEN_DIMENSIONS 2
#define THREE_THOUSAND_FIVE_HUNDRED_TWENTY_TWO 3522
What is the weirdest constant you've ever seen?
P. S. And of course my favorite in JScript:
bool b;
switch (b.ToString().length) {
case 4: // true
...
break;
case 5: // false
...
break;
)
© Stack Overflow or respective owner