通常,将数组形参直接定义为指针要比使用数组语法定义更好。
It is usually a good idea to define array parameters as Pointers, rather than using the array syntax.
有了得到允许的在一个数组中定义的形参,应用程序对参数处理代码的调用就可以像对一个静态方法的单个调用一样简单。
With the allowed parameters defined in an array, the call from the application program to the argument processing code can be kept as simple as a single call to a static method.
由于忽略了数组长度,形参定义中如果包含了数组长度则特别容易引起误解。
Because an array dimension is ignored, including a dimension in a parameter definition is particularly misleading.
应用推荐