Why code:
#define EXPONENT(num, exp) num ## e ## exp EXPONENT(1,1) EXPONENT(1,-1) EXPONENT(1,+1)
after pre-processing it changes to:
1e1 1e- 1 1e+ 1
not in
1e1 1e-1 1e+1
? I suspect this may be because -1, + 1 are parsed as two tokens (?). However, how then to get the last result?
c-preprocessor concatenation
kwitek
source share