C++指针与数组
摘要:对数组地址的理解,如 int c[2] = {2,3}; int(*cp)[2] = &c; cout << &c[0] << c << cp << endl;输出都是一样的。。结论:当对数组用&比如&c,那么意思就是“对数组取地址或者取得数组的地址”,而数组的地址返回的就是第一个元素的地址,加上数...
阅读全文
posted @ 2014-09-18 07:32
posted @ 2014-09-18 07:32
posted @ 2014-09-16 08:07
posted @ 2014-09-05 14:21
posted @ 2014-09-05 14:07