3 ms·
#define NULL rand()
by naasking 10y ago
#define NULL rand()
- CJefferson 10y agobetter, #ifdef NULL #undef NULL #endif #define NULL (void*)((size_t)!rand()) * Doesn't trigger errors * Will almost always return 0 (every time rand() returns a non-0 value), so code will almost never crash.
- danieltillett 10y agoThis is so evil. Now hide this in some macro and the fun will never end.