Home »

Why should I prototype a function?

Question ListCategory: cWhy should I prototype a function?
denielshakespeare5 author asked 8 years ago
1 Answers
jamessmith05 author answered 8 years ago

A function prototype tells the compiler what kind of arguments a function is looking to receive
and what kind of return value a function is going to give back. This approach helps the

compiler ensure that calls to a function are made correctly and that no erroneous type

conversions are taking place.

Please login or Register to Submit Answer