Quote Originally Posted by kryptkat

Why? do you use a "return 0;" in a main() ? Where the hex is that returning to....?

i like the straight down code look though.
It is returning to the OS. To not have a return value (void) creates undefined behavior and is frowned upon. You can return other values than 0 also. I commonly run my apps that I create via another app in order to get the return value.

Using
Code:
int functionName(...) {return 0;}
Can be benificial if you are planning on expanding the interface to return a error code. If you don't plan on it, it is prefered to use void functionName(...) {return;}