选择题
有以下程序
A、
1,1
B、
1,2
C、
2,3
D、
3,3
【正确答案】
B
【答案解析】
fun(++n)返回值为1,fun(n++)因为fun函数内n为static类型,仍保持原值1,函数返回值为2,所以答案选择B。
提交答案
关闭