以下程序的运行结果是 int a = 4; int fun(int n) { int t= 0; static int a = 5; if (n% 2) { int a = 6; t += a++; } else{ int a = 7; t += a++; } return t + a++; } main() { int s= a, i = 0; for (; i < 2; i++) s+= fun(i); printf("%d\n", s); }
A.
24
B.
28
C.
32
D.
36
拍照语音搜题,微信中搜索"皮皮学"使用
参考答案:
参考解析:
知识点:
皮皮学刷刷变学霸
举一反三
【单选题】Archimedes was a famous Greek mathematician and scientist. He was born around 287 BC and he died in the year 212 BC. Archimedes is most well-known for one specific idea that he came up with. 'Archimed...
【单选题】Archimedes was a famous Greek mathematician and scientist. He was born around 287 BC and he died in the year 212 BC. Archimedes is most well-known for one specific idea that he came up with. 'Archimed...