美文网首页
6.8 Pointers and arrays

6.8 Pointers and arrays

作者: Closears | 来源:发表于2017-08-26 18:14 被阅读0次

原完整教程链接:6.8 Pointers and arrays

1.
// C++ implicitly converts parameters using the array syntax ([]) to the 
// pointer syntax (*). That means the following two function 
// declarations are identical:

void printSize(int array[]);
void printSize(int *array);

/*
   Recommendation: Favor the pointer syntax (*) over the array 
   syntax ([]) for array function parameters.
*/

相关文章

网友评论

      本文标题:6.8 Pointers and arrays

      本文链接:https://www.haomeiwen.com/subject/adkvdxtx.html