計算機概論 程式輸出問題 - 考試
By Olive
at 2014-07-18T23:28
at 2014-07-18T23:28
Table of Contents
下列以 C 程式語言撰寫之程式執行後產生之輸出為何?
#include <stdio.h>
#define MAX(a, b) a>b?a:b
int main()
{
int m = 10, n = 10;
printf("%d", MAX(++n, m));
return 0;
}
a.10 b.11 c.12 d.13
答案為C
想請問一下各位,MAX(++n,m)意思是說要把n+1再帶出去
那帶到上面MAX a=11,b=10,接下來a>b?a:b這到底是什麼意思啊?
--
#include <stdio.h>
#define MAX(a, b) a>b?a:b
int main()
{
int m = 10, n = 10;
printf("%d", MAX(++n, m));
return 0;
}
a.10 b.11 c.12 d.13
答案為C
想請問一下各位,MAX(++n,m)意思是說要把n+1再帶出去
那帶到上面MAX a=11,b=10,接下來a>b?a:b這到底是什麼意思啊?
--
Tags:
考試
All Comments
By Blanche
at 2014-07-21T04:20
at 2014-07-21T04:20
By Sandy
at 2014-07-25T15:48
at 2014-07-25T15:48
By Jack
at 2014-07-29T02:42
at 2014-07-29T02:42
By Zora
at 2014-07-31T19:18
at 2014-07-31T19:18
Related Posts
正版函授二手轉賣問題
By Hardy
at 2014-07-18T23:03
at 2014-07-18T23:03
民法1030-2問題
By Jessica
at 2014-07-18T21:32
at 2014-07-18T21:32
煩惱 調查局化學鑑識科的準備方向
By Isla
at 2014-07-18T21:20
at 2014-07-18T21:20
民法1030-2問題
By Anthony
at 2014-07-18T21:02
at 2014-07-18T21:02
請問中國的通訊報到
By Delia
at 2014-07-18T19:38
at 2014-07-18T19:38