James wrote:
> where is the right place to put main()? before or after my function
> definitions? Because i used to write Pascal code, i stick main() last
> (in Pascal, the main begin..end pair must be the last function in the program).
> does it matter? seems more logical to define your prototypes, write them,
> then the main program.
>
1) Some write them before main()
2) Others write them after main()... This seems to be most common, conventional,
and convenient. If you do this be sure to include prototypes for the functions
somewhere before main(), or in a header file..
Or in larger projects they can be placed in separate files, as is commonly done.
Explore a text on C programming for greater depth on this topic.
/John