관심자료
Wednesday, March 27, 2013
C Macro Question -(x) vs (-x) - Stack Overflow
C Macro Question -(x) vs (-x) - Stack Overflow
: "What's abs(1-2)? For parentheses in general, if we define a macro #define sqr(x) x*x, then sqr(1+2) gives the wrong answer because it expands to 1+2*1+2, not (1+2)*(1+2)"
'via Blog this'
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment