Declaring function parameters after function name
问题 int func(x) int x; { ............. What is this kind of declaration called? When is it valid/invalid including C or C++, certain standard revisions and compilers? 回答1: It's still valid, but it's pre-ANSI. That's actually where the K&R indent style got its name. The opening bracket is on the line after the function block because this looks weird: int func(x) int x; { ... } Anyway, this style is not recommended because of a problem with function prototypes. 回答2: That is K&R C parameter