MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1w2m4qz/bugintroduceddebugging/p6tnbci/?context=3
r/ProgrammerHumor • u/ClipboardCopyPaste • 2d ago
120 comments sorted by
View all comments
16
Joke from last year or recent, can't tell with how often Gemini updates their models. /s
19 u/1XRobot 2d ago This is what it actually returns: #include <stdlib.h> int main(void) { int *x = malloc(sizeof(int)); // Allocates correct byte size for an int (typically 4 bytes) if (x == NULL) { return 1; // Good practice: Handle allocation failure } *x = 42; // Safe write operation free(x); // Correctly frees allocated block return 0; }
19
This is what it actually returns:
#include <stdlib.h> int main(void) { int *x = malloc(sizeof(int)); // Allocates correct byte size for an int (typically 4 bytes) if (x == NULL) { return 1; // Good practice: Handle allocation failure } *x = 42; // Safe write operation free(x); // Correctly frees allocated block return 0; }
16
u/inaem 2d ago
Joke from last year or recent, can't tell with how often Gemini updates their models. /s