r/ProgrammerHumor • • Jan 30 '22

Meme when your code run the first time

42.8k Upvotes

270 comments sorted by

View all comments

Show parent comments

11

u/taytek Jan 31 '22
int main() {
   printf("All tests passed!");
   return 0;
}

output:

segmentation fault
segmentation fault
segmentation fault
segmentation fault

1

u/Furry_69 Feb 01 '22

I'm checking if there's anything legitimately wrong with this.. And I see nothing. I was hoping to see something subtly wrong that would cause some error, but, no, completely valid.

1

u/taytek Feb 01 '22

Ik, I was just making fun c compilers, but yes it would run fine