![](https://csdnimg.cn/release/download_crawler_static/86306919/bg7.jpg)
Function Prototypes
• The declaration statement for a function is
referred to as a function prototype
– Declares the data type of the value that will be directly
returned by the function
– Declares the data type of the values that need to be
transmitted to the called function when it is invoked
– returnDataType functionName(parameter data types);
– parameter
–
• Function prototypes allow the compiler to check
for data type errors
– If the function prototype does not agree with data
types specified when the function is written, an error
message (typically TYPE MISMATCH) will occur
7