box-o-sand/oldstuff/PracticingC/gowrikumar/src/04-macrodef.c

20 lines
265 B
C
Raw Normal View History

/**
* :author: Dan Buch (daniel.buch@gmail.com)
*/
#include <stdio.h>
2011-06-17 01:46:56 +00:00
#define f(a, b) a##b
#define g(a) #a
#define h(a) g(a)
int main()
{
2011-06-17 01:46:56 +00:00
printf("%s\n", h(f(1, 2)));
printf("%s\n", g(f(1, 2)));
return 0;
}
/* vim:filetype=c:fileencoding=utf-8
*/