Mental Gymnastics C String
MENTAL GYMNASTICS string = gets MENTAL GYMNASTICS char* string; string = malloc(sizeof(char)*128); scanf("%s", *string); free(string);
A two-panel black-and-white stick-figure comic depicts increasingly elaborate gymnastics. The top panel represents the simple but unsafe C input function gets, while the bottom panel shows a chaotic obstacle course for manually allocating memory, scanning input, and freeing it. The joke is that safer or more technically correct C programming requires absurdly more mental gymnastics. EN: A two-panel black-and-white stick-figure comic depicts increasingly elaborate gymnastics. The top panel represents the simple but unsafe C input function gets, while the bottom panel shows a chaotic obstacle course for manually allocating memory, scanning input, and freeing it. The joke is that safer or more technically correct C programming requires absurdly more mental gymnastics.
- @gentoomemes / 6570 2023-09-29
- Template
- Mental Gymnastics
- Type
- image
- Size
- 680×680 · 62.5 KiB
- Mood
- absurd, sarcastic
- Language
- en
- Added