r/ProgrammerHumor • • 21d ago

Meme programmingLanguagesWhenYouAskThemToDoSomthing

Post image
1.6k Upvotes

224 comments sorted by

View all comments

Show parent comment

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.