A-A+

阅读下面程序:#include <iostream.h>fun (int a int b)

2022-08-05 20:35:16 问答库 阅读 172 次

问题详情

阅读下面程序:#include <iostream.h>fun (int a, int b){int c;c=a+b;return c;}void main(){int x=6, y=7, z=8, r;r=fun((x--, y++, x+y), z--);cout<<r<<end1;}则该程序的输出结果是()。
A.11
B.20
C.21
D.31请帮忙给出正确答案和分析,谢谢!

参考答案

正确答案:C

考点:程序