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

20 lines
265 B
C

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