問題詳情

23. The following is a C program code:

Which one of the following statements is CORRECT?
(A) When a=8, b=5, c=6, then A is 81, B is 5.
(B) When a=8, b=5, c=6, then A is 81, B is 6.
(C) When a=8, b=5, c=6, then A is 17, B is 5.
(D) When a=8, b=5, c=6, then A is 17, B is 6.
(E) When a=8, b=5, c=6, then A is 16, B is 6.

參考答案

用户評論

Bryce Zoran】評論

要注意用#define 寫的這種 macro function 不會把num+1 算好後再帶進去, 而是帶num+1 不帶括號的進去funciton,所以會得到 8+1*8+1 = 8+8+1 = 17