输出错误 [英] wrong output

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

问题描述

代码是

#define PROD(x)x + x

main()

{

int i = 3,j;

j = PROD(i + 1);

printf("%d",j);

}


请告诉我输出及其如何产生?

the code is
#define PROD(x) x+x
main()
{
int i=3,j;
j=PROD(i+1);
printf("%d", j);
}

pls tell me the output and how it is so?

推荐答案

Va*******@gmail.com aécrit:
Va*******@gmail.com a écrit :

代码是

#define PROD(x)x + x

main()

{

int i = 3,j;

j = PROD(i + 1);

printf("%d",j);

}


请告诉我输出以及如何输出?
the code is
#define PROD(x) x+x
main()
{
int i=3,j;
j=PROD(i+1);
printf("%d", j);
}

pls tell me the output and how it is so?



不要作弊。做自己的作业。

Do not cheat. Do your own homework.


Va ******* @ gmail.com 写道:
Va*******@gmail.com wrote:

代码是

#define PROD(x)x + x
the code is
#define PROD(x) x+x



看起来像是''产品''的有趣定义。


-

Roland Csaszar - --------- \\\ /// -------------- +43 316 495 2129

软件开发--- --- \\\ /// ----------- http ://www.knapp.com

KNAPP物流自动化 - \\V // - mailto:ro ************ @ knapp。 com

Seems like a funny definition of ''product'' :)

--
Roland Csaszar ----------- \\\ /// -------------- +43 316 495 2129
Software Development ------ \\\ /// ----------- http://www.knapp.com
KNAPP Logistics Automation - \\V// - mailto:ro************@knapp.com


Roland Csaszaraécrit:
Roland Csaszar a écrit :
Va ******* @ gmail.com 写道:

Va*******@gmail.com wrote:


>>代码是
#define PROD(x)x + x
>>the code is
#define PROD(x) x+x




好​​像很滑稽''产品''的定义''



Seems like a funny definition of ''product'' :)



是的,他甚至无法正确复制作业!

yes, he can''t even copy the homework correctly!


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

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