fireplace_tea wrote:
> Hello Everyone,
>
> I am learning about functions and the book I am reading says that it
> is good practice to create function prototypes.  My questions are:
>
> Do you really need to create function prototypes?  If so, why?
>   

I know others responded, here are my two cents.

There are cases where function prototyping is required. Not nice to 
have, not convenient, but your program will not compile without it. 
Getting into the habit is good.

If you are using doxygen or another documentation tool (and you should 
be) then it becomes far simpler to maintain your documentation if you 
keep your function prototypes in a header file along with the 
documentation. It separates the interface/documentation from the 
implementation, which is beneficial even for non-object oriented C code.

-- 
John Gaughan

Reply via email to