CodePudding user response:
All the macro definition function, paper and pencil to write down the firstMULT1 (3 + 2, 5 + 8) - & gt; 3 + 2 * 5 + 8 - & gt; 21
MULT2 (3 + 2, 5 + 8) - & gt; (3 + 2) * (5 + 8) - & gt; 65
CodePudding user response:
Nature knows the difference between the macro definition you, another may send 1 + 2, 2 + 3, this, no parenthesis will have the difference of the sequenceCodePudding user response:
Add do not add parentheses, the original poster can be put in place macro equivalent substitution, then according to the priority (add, subtract, multiply or divide difference compare with and without parentheses,CodePudding user response:
Is not the same as the priority, brackets, you see is what you think, do not add, you can see, is not necessarily think of youCodePudding user response:
# define the replacement string, do not add parentheses may calculate the replaced is not the result you want,