Skip to content

Instantly share code, notes, and snippets.

@Caesar-Victory
Created September 13, 2022 09:50
Show Gist options
  • Save Caesar-Victory/6cd6142096fe7c7f0d26692974da2ee6 to your computer and use it in GitHub Desktop.
Save Caesar-Victory/6cd6142096fe7c7f0d26692974da2ee6 to your computer and use it in GitHub Desktop.
#C
// 宏定义,相当于匿名函数,因此需要括号包裹,但三元运算符后面的部分,相当于返回值,因此不需要括号包裹
#define MAX(a, b) ((a) > (b) ? a : b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment