填空题:对于如下程序段,写出程序的运行结果:
对于如下程序段,写出程序的运行结果:
c
#include <stdio.h>
int main()
{
int a, b = 23, c = 1, d;
a = (b++, d = c++, c += d = b);
printf ("a=%d,b=%d,c=%d,d=%d\n", a, b, c, d);
return 0;
}
程序的运行结果:
答案:
第1空:a=26,b=24,c=26,d=24 ||
c
#include <stdio.h>
int main()
{
int a, b = 23, c = 1, d;
a = (b++, d = c++, c += d = b);
printf ("a=%d,b=%d,c=%d,d=%d\n", a, b, c, d);
return 0;
}
程序的运行结果:
答案:
第1空:a=26,b=24,c=26,d=24 ||