News for hackers. Stuff that matters.
Re:Where do argc and argv come from? by kps on Monday August 10, 2020 @04:31PM (#24113646)
Damn, you're right: Currently, “reaching the } that terminates the main function returns a value of 0”. In my defense, that was different in C89, which was the last one I worked on implementing and knew completely: “If the main function executes a return that specifies no value, the termination status returned to the host environment is undefined” and “Reaching the } that terminates a function is equivalent to executing a return statement without an expression.”

There are no comments on this comment yet.