橘子味的心
标题:参数化宏

参数化宏

#include <stdio.h>



#define MAX(x,y) ((x) > (y) ? (x) : (y))



int main(void) {

   printf("Max between 20 and 10 is %d\n", MAX(10, 20));  

   return 0;

}

目录

分类