Is the return
statement the last statement inside main
or is it possible to write statements after return?
#include
The only way you could usefully have code after a "return" is if the "return" statement is conditional.
if (error) return 0;
# All code invoked past this point knows error is false
This isn't great coding style, you're creating code where there are 2+ ways to exit. When you need to debug it you'll find it more challenging to put in flags and "what happened when we exited" and so forth.