C/macros

From Attie's Wiki
(Difference between revisions)
Jump to: navigation, search
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…')

Revision as of 18:08, 19 May 2011

#include <stdio.h>
 
struct {
 int hello;
} test;
 
#define say(a) printf("..."#a"...%d\n",test.a);
 
int main(void) {
  test.hello = 102;
  say(hello);
}
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox