c 语言
#include <stdio.h>void main ()
{
int a = 2,b = 4,c = 6 ,x,y;
y = (b+c),(x = a+b);
printf ("y=%d\nx=%d\n",y,x);
}
不是最后一个赋值给y吗?
file:///C:\Documents and Settings\鸳鸯传媒\Application Data\Tencent\Users\2680362714\QQ\WinTemp\RichOle\HL@D($(UVFS%])V]EKA8~Y0.jpg
你好 你说的那个是逗号表达式的,y = ( (b+c),(x = a+b) );这样才行。 Thankyou!
页:
[1]