让程序来告诉你,我傻,还是你傻~~
让程序来告诉你,我傻,还是你傻~~#include <stdio.h>
#include <stdlib.h>
void test1()
{
int a = 1, b = 2;
if( a == (a+=b))
printf("You are stupid!\n");
else
printf("I am stupid!\n");
}
void test2()
{
int a = 1, b = 2;
if( (a+=b) == a)
printf("You are stupid!\n");
else
printf("I am stupid!\n");
}
int main()
{
test1();
test2();
system("pause");
return 0;
}
不运行程序你能直接说出结果吗?
ps:这是我们学校论坛上的一个帖子,感觉有点意思,拿出来跟大家分享一下,娱乐中有收获