memesearch
Recursive Odd Number Function

Recursive Odd Number Function

Download Find similar pictures
Text on the meme
Boolean isOdd(int num) { if (num == 2147483647) { return true; } else if (num == 0) { return false; } return isOdd(num+2) }
What it means

A pixelated code screenshot shows a recursive Boolean function checking whether a number is odd. The joke is that it only handles the maximum 32-bit integer and zero as base cases, so other inputs recurse indefinitely or overflow instead of returning a result. It is shared as a programmer reaction to flawed recursion and edge-case bugs.

Objects
Tags
Sources
Type
image
Size
680×406 · 26.9 KiB
Mood
саркастичный
Language
en
Added