C++学习笔记(二)之数组

数组作形参时,实际传入数组首地址

1 void print(const int*)
2 void print(const int [])
3 void print(const int[10])

三种方法等价

posted @ 2017-03-30 12:02  默语柯  阅读(168)  评论(0编辑  收藏  举报