Function prototype in C programming

Posted Mr.Meeseeks

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Function prototype in C programming相关的知识,希望对你有一定的参考价值。

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的主要内容,如果未能解决你的问题,请参考以下文章

hasOwnProperty,in

关于js的for in循环,慎用

C语言中,为啥这样的代码编译时出错i undeclared(first use in this function),

in操作符/Object.keys()/ Object.getOwnPropertyNames()

jquery入口函数的测试

构造函数,原型链, prototype