2018年6月5日

函数和指针

摘要: 1、指针与函数的返回值 1 #define A 0 2 int funcA(int a, int b) 3 { 4 return a + b; 5 } 6 7 /*把指针作为函数的返回值*/ 8 int * funcB(int a, int b) 9 { 10 static int c = A; 1 阅读全文

posted @ 2018-06-05 22:36 爱火1 阅读(319) 评论(0) 推荐(0)

2018年5月23日

复习c语言第一天

摘要: 1,短路操作 #include <stdio.h> void main1(void){ //短路操作,逻辑与操作符,如果左操作数为假,右操作数被短路 int a = 5; if ((4 < 3) && (a = 2)) //if ((4 > 3) && (a = 2)) printf("111111 阅读全文

posted @ 2018-05-23 01:34 爱火1 阅读(165) 评论(0) 推荐(0)

导航

点击右上角即可分享
微信分享提示