I am now learning C programming through Learn C the Hard Way by Zed A. Shaw. There is this code (taking from his website):
#include
#include
You should declare functions in the order that makes sense. This should be described in the coding style document you follow. One example of common design is:
In addition to style and design concerns, ancient versions of C would start to "make up" function parameters and return types if there was no prototype at all visible before the function call.