码迷,mamicode.com
首页 > 编程语言 > 详细

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

时间:2017-03-30 13:26:00      阅读:158      评论:0      收藏:0      [点我收藏+]

标签:笔记   const   blog   int   c++学习   等价   div   oid   形参   

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

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

三种方法等价

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

标签:笔记   const   blog   int   c++学习   等价   div   oid   形参   

原文地址:http://www.cnblogs.com/mokero/p/6645445.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!