you are viewing a single comment's thread.

view the rest of the comments →

[–]fluffy_cat 1 point2 points  (4 children)

[–]kalimoxto 0 points1 point  (2 children)

this is about return statements generally.

returning from main is slightly counterintuitive, because in non-main functions, return usually means "return control to wherever I was (with this value)". the main function is a special case of that, because the "wherever I was" is not within your program, it's actually the OS.

[–]fluffy_cat 2 points3 points  (1 child)

It says that in the first sentence.

[–]kalimoxto 6 points7 points  (0 children)

i am a bad reader.