C/macros
From Attie's Wiki
(Difference between revisions)
m (Created page with '<source lang="c"> #include <stdio.h> struct { int hello; } test; #define say(a) printf("..."#a"...%d\n",test.a); int main(void) { test.hello = 102; say(hello); } </source…') |
|||
(One intermediate revision by one user not shown) | |||
Line 6: | Line 6: | ||
} test; | } test; | ||
− | #define say(a) printf("..."#a"...%d\n",test.a) | + | #define say(a) printf("..."#a"...%d\n",test.a) |
int main(void) { | int main(void) { |
Latest revision as of 17:07, 14 February 2013
#include <stdio.h> struct { int hello; } test; #define say(a) printf("..."#a"...%d\n",test.a) int main(void) { test.hello = 102; say(hello); }