开发者

function parameter type checking in ANSI-C with empty parameter list

In K&R it says that declaring a function pr开发者_高级运维ototype such as void foo(); with an empty parameter list turns off function parameter type checking. Is this only for foo or for all functions?


That only applies to the function in question, not globally.


It turns off the checking only for functions that are declared with empty parameter list, all other functions will still be checked.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜