Comment

Comment by jeroenhd

My compilers call printf just fine until you enable optimizations. -O0 adds references to printf, -O1 and higher switches to puts.

I was kind of surprised about the fact that there was no warning about the missing return from main(). Normally, I'd expect the compiler to complain that a supposed int returning function does not return anything, because that would normally be undefined behaviour.

parent jeroenhd 5 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton