帮忙看看 程序输出什么?怎么才能得到想要结果.......
程序代码:#include "stdio.h"
#define NL putchar('\n')
#define print(a,y) printf("y = %a\t",(y))
void main()
{
int Y = 4;
printf("hello world!!");
NL;
print(d,Y);
}
想让它输出 Y =4 怎么办 求各位指点下
程序代码:#include "stdio.h"
#define NL putchar('\n')
#define PR(format,value) printf("value = %"format,(value))
#define PRINT1(f,x1) PR(f,x1);NL
#define PRINT2(f,x1,x2) PR(f,x1);PRINT1(f,x2)
void main(void)
{
int x=5,x1=3,x2=8;
PR("d",x);
PRINT1("d",x);
PRINT2("d",x1,x2);
}