82
submitted 4 months ago* (last edited 4 months ago) by ruffsl@programming.dev to c/programmer_humor@programming.dev
you are viewing a single comment's thread
view the rest of the comments
[-] bitcrafter@programming.dev 8 points 4 months ago

In civilized languages tail recursion takes care of this for you. ๐Ÿ˜

[-] bss03@infosec.pub 5 points 4 months ago

gcc can do tail-call optimization in C, and sometimes in C++. It doesn't even have to be a recursive call, tho I do think it might depends on the calling convention.

[-] bitcrafter@programming.dev 3 points 4 months ago

Oh, cool! I did not know that.

this post was submitted on 07 Oct 2025
82 points (98.8% liked)

Programmer Humor

29717 readers
1341 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS