让我们尝试解决这个问题 [英] lets try to solve this problem
本文介绍了让我们尝试解决这个问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有一个c语言的代码请尝试解决...
并告诉我为什么会出现这样的输出..
there is a code in c language please try to solve...
and tell me why this output is occurs..
#include<stdio.h>
void main()
{
int a=5,b=10,c=15;
int d;
d=(a,b,c);
printf("%d",d);
getch();
}
推荐答案
没有问题......它完全符合我的期望:
http://en.wikipedia.org/wiki/Comma_operator [ ^ ]
There is no problem...it is doing exactly what I would expect:
http://en.wikipedia.org/wiki/Comma_operator[^]
它将打印15
因为它将c存储到i
这篇关于让我们尝试解决这个问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文