Y
Hacker News
new
|
ask
|
show
|
jobs
by
unwind
412 days ago
I agree, but I have to point out that if you're gonna be like that, then you should be explicit about your final
return 0;
2 comments
tavianator
412 days ago
The C standard (since C99) says that `main()` has an implicit `return 0`, you don't need to write it explicitly.
link
01HNNWZ0MV43FF
412 days ago
Sure but are we teaching good habits to students, or are we golfing?
link
pjmlp
411 days ago
Given how many tutorials leave best practices out on how to do proper error handling, strings and arrays in C, doing analysis as part of the build, I would say golfing most of the time.
link
lynx97
409 days ago
Aww, of course, you're right.
link