3 ms·
It is useful for static analysis, even the standard people say that they will move into this kind of declaration. > 15. Application Programming Interfaces (API
by h_anna_h 6y ago
It is useful for static analysis, even the standard people say that they will move into this kind of declaration.
> 15. Application Programming Interfaces (APIs) should be self-documenting when possible. In particular, the order of parameters in function declarations should be arranged such that the size of an array appears before the array. The purpose is to allow Variable-Length Array (VLA) notation to be used. This not only makes the code's purpose clearer to human readers, but also makes static analysis easier. Any new APIs added to the Standard should take this into consideration.
from http://www.open-std.org/jtc1/sc22/wg14/www/docs/n2086.htm http://www.open-std.org/jtc1/sc22/wg14/www/docs/n2086.htm