急于说46 [英] eager to say 46

查看:55
本文介绍了急于说46的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

#define f(a,b)a + b

#define g(a,b)a * b


main()

{


int m;

m = 2 * f(3,g(4,5));

printf(" \ nm is%d",m);

system(" pause");

}

什么是前卫的o / p以及为什么?

#define f(a,b) a+b
#define g(a,b) a*b

main()
{

int m;
m=2*f(3,g(4,5));
printf("\n m is %d",m);
system("pause");
}

what shud be the o/p of prog and why?

推荐答案

sumedh .....写道:
sumedh..... wrote:

#define f(a,b)a + b

#define g(a,b)a * b


main()

{


int m;

m = 2 * f(3, g(4,5));

printf(" \ nm is%d",m);

system(" pause");

}


什么是前卫的o / p以及为什么?
#define f(a,b) a+b
#define g(a,b) a*b

main()
{

int m;
m=2*f(3,g(4,5));
printf("\n m is %d",m);
system("pause");
}

what shud be the o/p of prog and why?



如果你能'不能应付你的作业,和你的导师交谈。大部分

我们,如果不是全部的话,不会为你做这件事......


(Sumedh的时间......去吧在我的killfile中,我认为)

If you can''t cope with your homework, talk to your instructor. Most of
us, if not all, won''t do it for you...

(Time for Sumedh..... to go in my killfile, I think)




sumedh .....写道:

sumedh..... wrote:

#define f(a,b)a + b

#define g(a,b)a * b


main()< br $>
{


int m;

m = 2 * f(3,g(4,5));

printf(" \ nm is%d",m);

system(暂停);

}


什么是前卫的o / p和为什么?
#define f(a,b) a+b
#define g(a,b) a*b

main()
{

int m;
m=2*f(3,g(4,5));
printf("\n m is %d",m);
system("pause");
}

what shud be the o/p of prog and why?



看起来很棘手:

但o / p是26

it seems to be tricky one:
but o/p is 26


c world< ex ********** @ gmail.comwrote:
c world <ex**********@gmail.comwrote:

sumedh .....写道:
sumedh..... wrote:

#define f(a,b)a + b

#define g(a,b)a * b


main()

{


int m;

m = 2 * f(3, g(4,5));

printf(" \ nm is%d",m);

system(" pause");

}


什么是前卫的o / p,为什么?
#define f(a,b) a+b
#define g(a,b) a*b

main()
{

int m;
m=2*f(3,g(4,5));
printf("\n m is %d",m);
system("pause");
}

what shud be the o/p of prog and why?


看起来很棘手:

但是o / p是26
it seems to be tricky one:
but o/p is 26



一点也不棘手。手动进行宏扩展(它不是那么复杂的b $ b)并且记住某些运算符比其他运算符具有更高的优先级(不仅在C中,而且在

你在一张纸上做计算......)


问候,Jens

-

\ Jens Thoms Toerring ___ jt@toerring.de

\ __________________________ http://toerring.de


这篇关于急于说46的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆