r/ProgrammerHumor • • 21d ago

Meme programmingLanguagesWhenYouAskThemToDoSomthing

Post image
1.6k Upvotes

224 comments sorted by

View all comments

195

u/youtubeTAxel 20d ago

Sure...

Like C wouldn't just segfault

122

u/Stemt 20d ago

The programmer is the one that told C to cause a segfault, C just does it.

28

u/Oblivious_catalyst 20d ago

i had this really weird bug in a C program i wrote once where for some reason running this random function would cause my program to make argv point to garbage data. spent days debuging it. turns out it was because i forgot to allocate memory to an array and it was overwriting the pointer.

3

u/DeVinke_ 19d ago

I did this with two scoped local variables in c++ once.

12

u/MrRamRam720 20d ago

C would create 200 CVEs to be discovered 10 years later

0

u/Technical_Fly5479 20d ago

came looking for segfault for c