码迷,mamicode.com
首页 > 其他好文 > 详细

Function prototype in C programming

时间:2020-05-16 00:28:14      阅读:61      评论:0      收藏:0      [点我收藏+]

标签:bsp   arguments   lead   nbsp   hat   execution   erro   cti   abs   

Function prototype in C programming: Importance

Function prototype in C is used by the compiler to ensure

whether the function call matches the return type

and the correct number of arguments or parameters with its data type of the called function.

In the absence of the function prototype,

a coder might call function improperly without the compiler detecting errors

that may lead to fatal execution-time errors that are difficult to detect.

 

Syntax of function prototype in C programming:

return_type function_name( type argument1, type argument2, ...);

 

Function prototype in C programming

标签:bsp   arguments   lead   nbsp   hat   execution   erro   cti   abs   

原文地址:https://www.cnblogs.com/JasperZhao/p/12897974.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!