HackerTrans
TopNewTrendsCommentsPastAskShowJobs

parker78

no profile record

comments

parker78
·قبل 4 سنوات·discuss
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?).