Home Segments Index Top Previous Next

699: Mainline

A function prototype is a declaration, rather than a definition, because it provides the C++ compiler with information about a function that is defined elsewhere. Remember that the C++ compiler accepts repeated function prototypes, but complains whenever it encounters repeated function definitions.