![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C语言积累
文章平均质量分 65
你好,世界
这个作者很懒,什么都没留下…
展开
-
if if 和if else if深探(可能也不是很深入,小白嘛,嘿嘿)
多个if是所有的if都会进行判断if else if是只要有满足条件的,就不再对之后的else if进行判断比如a = 2;if(a==1) c=1;if(a==2) c=2;if(a%2==0) c=3;结果c=3a=2;if(a==1) c=1;else if(a==2) c=2;else if(a%2==0) c=3;结果c=2...原创 2018-12-01 22:00:46 · 139 阅读 · 0 评论 -
翁恺老师——为什么数组传入函数后的sizeof不对了
传入函数后的数组成了什么?对于一个普通变量传入的是值,对于一个指针传入的也是值,只不过这个值是一个地址。先看一下下面的代码#include<stdio.h> void minmax(int a[],int len,int *max,int *min); int main(void) { int a[]={1,2,3,4,5,6,7,8,9,12,13,14,16...原创 2018-12-12 20:14:29 · 774 阅读 · 0 评论