Interview Questions

Why should I prototype a function?

C Interview Questions and Answers


(Continued from previous question...)

Why should I prototype a function?

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.

(Continued on next question...)

Other Interview Questions