摘要: c99以前数组元素数量不可为变量 1 return; 2 return 值; 3 遇到return 停止执行,单一出口理念,只要一个return 块{} 变量空间 函数原型(函数声明) 1 void swap();表示参数未知 2 void swap(void);表示没有参数 1 void swap 阅读全文
posted @ 2020-08-12 15:33 sueg-lee 阅读(37) 评论(0) 推荐(0)
摘要: 1 #include<stdbool.h> 2 bool b=6>5; 短路:逻辑运算从左至右,左边结果已经决定就不做右边 条件运算符:自右向左结合 1 count=(count>20)?count-10:count+10; 2 if(count>20) 3 count=count-10; 4 el 阅读全文
posted @ 2020-08-12 15:28 sueg-lee 阅读(5) 评论(0) 推荐(0)