Re: A question about macro replacement

2007-02-07 Thread Brooks Moses
[EMAIL PROTECTED] wrote: With following code: [CODE] struct B { int c; int d; }; #define X(a, b, c) \ do\ {\ if (a)\ printf("%d, %d\n", b.c, c);\ else\ printf("%d\n", c);\ }while(0); [/CODE] Why int d = 24; X(1, b,

A question about macro replacement

2007-02-07 Thread zhao_bingfeng
Hi, all, With following code: [CODE] struct B { int c; int d; }; #define X(a, b, c) \ do\ {\ if (a)\ printf("%d, %d\n", b.c, c);\ else\ printf("%d\n", c);\ }while(0); [/CODE] Why int d = 24; X(1, b, d); can be compil