Infinite Recursion Is Even Joke
bool isEven(int num) { return isOdd(num + 1); } bool isOdd(int num) { return isEven(num + 1); }
A screenshot of C/C++-style code defines `isEven` and `isOdd` by calling each other with an incremented number, creating infinite mutual recursion instead of returning a result. The joke is a programmer’s absurd implementation of parity checking that never terminates, making it useful as a reaction to overcomplicated or broken code.
- @gentoomemes / 2603 2023-02-23
- Type
- image
- Size
- 308×142 · 5.9 KiB
- Mood
- absurd, sarcastic
- Language
- en
- Added