今天的C语言需要知道函数在第一次调用之前具有什么样的重返值和哪些参数。这被命名为函数原型的“声明”。它具有形式
RealType函数名(参数类型表);
通常,为了改进参数理解,可以在参数类型之后发布名称,该参数类型对于代码生成毫无意义,但可以提高可读性,例如
BoOL GETValvStand(UTI16压力值);
主体()
而GETValvStand(OutsiDar)…
鲍勃
以上来自于百度翻译
以下为原文
Today's C-language needs to know what kind of rerturn-value and what parameters a function has before it is called the first time. This is named "declaration" of a function prototype. It has the form
returntype FunctionName(Parametertypelist);
Usually to improve parameter understanding, a name can be posted after a parametertype which is meaningless for code generation but improves readability, for example
BOOL GetValveState(uint16 PressureValue);
main()
while GetValveState(OutSideBar) ...
Bob
今天的C语言需要知道函数在第一次调用之前具有什么样的重返值和哪些参数。这被命名为函数原型的“声明”。它具有形式
RealType函数名(参数类型表);
通常,为了改进参数理解,可以在参数类型之后发布名称,该参数类型对于代码生成毫无意义,但可以提高可读性,例如
BoOL GETValvStand(UTI16压力值);
主体()
而GETValvStand(OutsiDar)…
鲍勃
以上来自于百度翻译
以下为原文
Today's C-language needs to know what kind of rerturn-value and what parameters a function has before it is called the first time. This is named "declaration" of a function prototype. It has the form
returntype FunctionName(Parametertypelist);
Usually to improve parameter understanding, a name can be posted after a parametertype which is meaningless for code generation but improves readability, for example
BOOL GetValveState(uint16 PressureValue);
main()
while GetValveState(OutSideBar) ...
Bob
举报