C语言中 #define N 30 #define IFADOB(A,B) ((A)&&(B,0))

来源:学生作业帮助网 编辑:作业帮 时间:2024/04/28 04:30:12
C语言中 #define N 30 #define IFADOB(A,B) ((A)&&(B,0))

C语言中 #define N 30 #define IFADOB(A,B) ((A)&&(B,0))
C语言中 #define N 30 #define IFADOB(A,B) ((A)&&(B,0))

C语言中 #define N 30 #define IFADOB(A,B) ((A)&&(B,0))
楼上说的对,宏定义:#define N 30 意思跟N=30差不多;#define IFADOB(A,B) ((A)&&(B,0)),这里的IFADOB(A,B) 相当于一个函数返回值为((A)&&(B,0)),其中((A)&&(B,0)) 是(B,0)的逗号运算后与A的并;