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.
精彩评论