r/ProgrammerHumor • • 29d ago

Meme programmingLanguagesWhenYouAskThemToDoSomthing

Post image
1.6k Upvotes

224 comments sorted by

View all comments

195

u/youtubeTAxel 29d ago

Sure...

Like C wouldn't just segfault

122

u/Stemt 28d ago

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

28

u/Oblivious_catalyst 28d 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_ 27d ago

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

12

u/MrRamRam720 28d ago

C would create 200 CVEs to be discovered 10 years later

0

u/Technical_Fly5479 28d ago

came looking for segfault for c