macro concatenation

let me just go straight into the output i want.

i have a macro say
#define M 32

i need one macro(say M_STR) which will give me "32" using the above declared macro.

i tried using the # operator(#define M_STR #M) but it'll give me "M" not "32"
try this:
1
2
#define M 32
#define M_STR M 


Regards,
Heru
i don't think thats what i want, i want string 32 ("32").
i don't think thats what i want, i want string 32 ("32").
i don't think thats what i want, i want string 32 ("32").
i don't think thats what i want, i want string 32 ("32").
Topic archived. No new replies allowed.