1 #define N 3 2 #define Y(n) ((N+1)*n) 3 z = 2*(N+Y(5+1)); 4 //z == 48
易错,难点在于:理解宏函数的参数是表达式的话,不进行计算,而是直接带入,就地展开,重新分析运算符的优先级。
z = 2*(3 + (3+1)*5+1)