Better HN
topnewbestaskshowjobs
Log inSign up

parker78

2 karma · joined Mar 9, 2022 (4y ago) · 2 submissions

Submissions

comment 4y ago · link · parent

It's only a bug if the requirements are:

"Print Hello World and indicate if it succeed or not"

If the requirements were:

"Print Hello World, then return 0"

It's working as intended.

I'd even go so far as to say that print(); return 0; should always return 0, it would be weird for such a program to ever return anything other than 0 (where would that return come from?).