If I put main on the top of the source file and invoke some custom functions, it will tell me that those functions are not found, but if I put main on the bottom of the source file, it will work.
Why? Is it because the compiler parse from top to bottom and breaks at the definiteion of main?