Defining functions below int main() - Best practices?
I don't understand why one would define some functions below int main()...???
What is the point of that exactly?
It would seem to me that the best practice would be to have int main() at the bottom of all code. Why would you write code beneath the main() function?
Also, in a book entitled "Practical C++" by Robert W. McGregor, in example code, the main() function always has the return type void instead of int. Why is this? I thought the main function always has to be int? Or does it just depend on the compiler/platform?