Function Prototypes in C and C++
www.thoughtco.com
Because the function prototype tells the compiler what to expect, the compiler is better able to flag any functions that don't contain the expected information. Benefits
Prototypes save debugging time.
Prototypes prevent problems that occur when you compile using functions that were not declared.
Wh