102普考/計算機概論/C語言 - 普考
By Elizabeth
at 2014-04-18T11:26
at 2014-04-18T11:26
Table of Contents
考題:http://ppt.cc/Ji~W
想法:因為有前置處理器 #define
所以先處理前兩行
#define PLUS(a,b) a-b ==> PLUS(m1+m2,m1-m2) = 2 m2
#define MINUS(a,b) a+b ==> MINUS(m2-m1,m2+m1) = 2 m2
所以ml = 2 m2 * 2 m2 = 36
為何答案是-3呢??
--
想法:因為有前置處理器 #define
所以先處理前兩行
#define PLUS(a,b) a-b ==> PLUS(m1+m2,m1-m2) = 2 m2
#define MINUS(a,b) a+b ==> MINUS(m2-m1,m2+m1) = 2 m2
所以ml = 2 m2 * 2 m2 = 36
為何答案是-3呢??
--
Tags:
普考
All Comments
By Caroline
at 2014-04-20T03:05
at 2014-04-20T03:05
By Robert
at 2014-04-25T01:37
at 2014-04-25T01:37
By James
at 2014-04-25T17:03
at 2014-04-25T17:03
By Dinah
at 2014-04-27T13:48
at 2014-04-27T13:48
Related Posts
想考一般民政
By Candice
at 2014-04-16T23:44
at 2014-04-16T23:44
請問交通技術報考資格
By Eden
at 2014-04-16T21:57
at 2014-04-16T21:57
請土木公職前輩幫忙回答人生疑惑
By Liam
at 2014-04-16T21:26
at 2014-04-16T21:26
請土木公職前輩幫忙回答人生疑惑
By Hedwig
at 2014-04-16T20:27
at 2014-04-16T20:27
補習班的高考活動價大都在何時?
By Mason
at 2014-04-16T15:22
at 2014-04-16T15:22