求 x y z,找出最大值最小值C语言实现 #include #define max(x,y,z) ((x)>(y)?(x):(y))>(z)?((x)>(y)?(x):(y)):(z) #define min(x,y,z) ((x)<(y)?(x):(y))<(z)?((x)<(y)?(x):(y)):(z) int main(void) { unsigned int a,b; a = min(3,1,6); b = max(6,7,8); printf("a=%d\n",a); printf("b=%d\n",b); return 0; }