摘要: 宏的作用: 定义常量 定义傻瓜表达式: 只作为符号替换: #define S(a, b) a * b // S(1+2, 2+3) // 1+ 2*2 + 3 = 8 定义代码段: #define P(a) {\ printf("%d\n", a); \ } '\' 为连接符,因为C规定,宏定义只能 阅读全文
posted @ 2021-04-13 15:38 Dylan_Liang 阅读(413) 评论(0) 推荐(0)