calling a function without a prototype
时间: 2024-06-07 18:08:30 浏览: 195
翻译-matlab2014a中help与参考页的极小部分的翻译
Calling a function without a prototype is not recommended because the compiler does not know the return type and arguments of the function. This can lead to unexpected behavior or errors during runtime. In C, if a function is called without a prototype, the compiler assumes that the function returns an integer and takes an unspecified number of arguments. To avoid this, it is recommended to declare the function prototype before calling it. This informs the compiler about the return type and arguments of the function.
阅读全文