Went to an IRC chat room when I was learning C in school. Asked if you could return a pointer to something that lives on the stack. Was talked down by an all-knowing dude telling me to go read K&R again. Proceeded to write a code sample [1] that showed it is possible (it's not really stable but works reliably in recursive calls IIRC).
I do not like this attitude (then again it was just one random dude).
I do not like this attitude (then again it was just one random dude).
[1] https://www.onlinegdb.com/HyO5VXRxS