怎样对宏进行展开?(C语言版)

如题所述

#define M(x,y,z)x*y+z如果写M(a+b,b+c,c+a)这时a+b对应xb+c对应yc+a对应z然后直接代入.x*y+z结果是: a+b*b+c+c+a x * y + z注意不要自己加引号,就直接展开
温馨提示:答案为网友推荐,仅供参考
第1个回答  2013-12-26
DEFUN (vtysh_show_hello,
vtysh_show_hello_cmd,
"show hello",
" hello1\n"
" hello2\n"
)
{
printf("hello\n");
return CMD_SUCCESS;
}
相似回答