Stringizing Operater and Token-passing
Operater:
#include<stdio.h>
#include<conio.h>
#define c(i) printf("x"#i"=%d",x##i)
main()
{
int x3=5;
clrscr();
c(3);
getch();
}
// # stringizing operater.
// ## token-passing operater.
#include<stdio.h>
#include<conio.h>
#define c(i) printf("x"#i"=%d",x##i)
main()
{
int x3=5;
clrscr();
c(3);
getch();
}
// # stringizing operater.
// ## token-passing operater.
No comments:
Post a Comment