![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
------Language------
文章平均质量分 80
番茄鱼片汤
这个作者很懒,什么都没留下…
展开
-
【C/C++】int *p[4]与int (*q)[4]的区别
转载自:http://blog.sina.com.cn/s/blog_715de2f50100ojo9.html 以上定义涉及两个运算符:“*”(间接引用)、“[]”(下标),“[]”的优先级别大于“*”的优先级别。 首先看int *p[4],“[]”的优先级别高,所以它首先是个大小为4的数组,即p[4];剩下的“int *”作为补充说明,即说明该数组的每一个转载 2015-02-16 19:16:27 · 571 阅读 · 0 评论 -
【C/C++】C/C++ 中二维数组传递的三种方式
转载自:http://blog.csdn.net/yzhhmhm/article/details/2045816 C/C++ 中二维数组的传递 问题描述:于习题中碰到关于数组传递的问题,不熟悉相关。引发运行错误 二维数组传递的几种方式 (1) void function(char a[][20]) //数组名传递 { //……. }转载 2015-02-16 19:21:33 · 1524 阅读 · 0 评论 -
【C/C++】C语言中qsort的cmp函数写法汇总
函数原型: void qsort( void *base, size_t num, size_t width, int (__cdecl *compare )(const void *, const void *) ); 参数: base:Start of target array. num:Array size in elements. width:Ele转载 2015-03-10 19:05:01 · 2569 阅读 · 3 评论