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?
> 
> Thanks,
> Julie

You don't HAVE to in most cases.  They help to avoid compile-time issues 
and are required for referencing functions in multiple object files.

int B()
{
   A();
}

int A()
{
   // Assume C() is defined in a different file.
   C();
}

Prototypes are a good habit to get into though.  You will quickly get 
the hang of copy, paste, jump to the end of the line, tack on a semi-colon.

-- 
Thomas Hruska
CubicleSoft President
Ph: 517-803-4197

*NEW* MyTaskFocus 1.1
Get on task.  Stay on task.

http://www.CubicleSoft.com/MyTaskFocus/

Reply via email to