Return NULL or Variable
if (variable == NULL) { return NULL; } else { return variable; }
A code snippet checks whether a variable is NULL and returns NULL if it is; otherwise, it returns the variable unchanged. The joke is the redundant conditional, which humorously does exactly what simply returning the variable would do, making it a reaction to pointless or overly complicated code. EN: A code snippet checks whether a variable is NULL and returns NULL if it is; otherwise, it returns the variable unchanged. The joke is the redundant conditional, which humorously does exactly what simply returning the variable would do, making it a reaction to pointless or overly complicated code.
- @gentoomemes / 7700 2023-11-29
- Type
- image
- Size
- 436×193 · 11.1 KiB
- Mood
- саркастичный
- Language
- en
- Added