首页 > 其他 > 详细

Function prototype in C programming

时间:2020-05-16 00:43:29      阅读:48      评论:0      收藏:0      [点我收藏+]

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

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!