105高三資訊處理 程式語言的 第三題 - 考試
By Madame
at 2016-07-12T19:46
at 2016-07-12T19:46
Table of Contents
不好意思因為是不同小題 就分開貼了 不是為了賺P幣~XD
題目 int main(){
int a=1,b=2,c=3,d=4;
prinf("%d %d %d %d ", a+b+c+d , (b*=a) , (a+=d),(d++));
}
補習班的答案
10 2 5 4
使用gcc的結果
26 12 6 4
這部份也是覺得推算起來很鬼異~
畢竟d++的生效要是下一行 才有反應~?
這只是compiler的不同嗎?
--
Tags:
考試
All Comments
By Anonymous
at 2016-07-17T15:38
at 2016-07-17T15:38
By Candice
at 2016-07-19T14:33
at 2016-07-19T14:33
By Ophelia
at 2016-07-23T06:07
at 2016-07-23T06:07
By Cara
at 2016-07-25T21:47
at 2016-07-25T21:47
By Agatha
at 2016-07-26T07:55
at 2016-07-26T07:55
By Queena
at 2016-07-26T17:39
at 2016-07-26T17:39
By Hedy
at 2016-07-30T14:54
at 2016-07-30T14:54
By Doris
at 2016-08-01T02:57
at 2016-08-01T02:57
By Iris
at 2016-08-03T16:22
at 2016-08-03T16:22
By Sarah
at 2016-08-08T10:03
at 2016-08-08T10:03
By Noah
at 2016-08-11T04:45
at 2016-08-11T04:45
By Hardy
at 2016-08-15T00:51
at 2016-08-15T00:51
By Hedwig
at 2016-08-16T10:30
at 2016-08-16T10:30
By James
at 2016-08-18T22:38
at 2016-08-18T22:38
By Necoo
at 2016-08-20T00:33
at 2016-08-20T00:33
By Ida
at 2016-08-23T02:52
at 2016-08-23T02:52
By Steve
at 2016-08-26T06:40
at 2016-08-26T06:40
By Frederic
at 2016-08-30T07:29
at 2016-08-30T07:29
By Callum
at 2016-09-03T22:01
at 2016-09-03T22:01
By Valerie
at 2016-09-04T17:58
at 2016-09-04T17:58
By Kristin
at 2016-09-05T04:13
at 2016-09-05T04:13
By David
at 2016-09-10T03:50
at 2016-09-10T03:50
By Puput
at 2016-09-12T22:36
at 2016-09-12T22:36
By Oliver
at 2016-09-13T08:34
at 2016-09-13T08:34
By Freda
at 2016-09-15T22:12
at 2016-09-15T22:12
By Olive
at 2016-09-19T15:46
at 2016-09-19T15:46
By Linda
at 2016-09-21T07:32
at 2016-09-21T07:32
By Elvira
at 2016-09-22T21:12
at 2016-09-22T21:12
By Rebecca
at 2016-09-27T17:21
at 2016-09-27T17:21
By Donna
at 2016-09-29T23:24
at 2016-09-29T23:24
By William
at 2016-10-03T20:31
at 2016-10-03T20:31
By Adele
at 2016-10-04T15:26
at 2016-10-04T15:26
By Emma
at 2016-10-05T05:38
at 2016-10-05T05:38
By Dora
at 2016-10-08T16:27
at 2016-10-08T16:27
By Oscar
at 2016-10-10T22:38
at 2016-10-10T22:38
By Michael
at 2016-10-12T04:31
at 2016-10-12T04:31
By Vanessa
at 2016-10-15T08:39
at 2016-10-15T08:39
By Sandy
at 2016-10-19T20:59
at 2016-10-19T20:59
By Caitlin
at 2016-10-20T10:34
at 2016-10-20T10:34
Related Posts
今年(105)刑法
By David
at 2016-07-12T18:44
at 2016-07-12T18:44
贈送 尊榮禮券
By Andy
at 2016-07-12T18:24
at 2016-07-12T18:24
國考人事行政珍藏書和ㄧ本模擬試卷
By Rosalind
at 2016-07-12T18:02
at 2016-07-12T18:02
抱怨一下考場&有檢查計算機嗎?
By Oscar
at 2016-07-12T17:50
at 2016-07-12T17:50
李澤老師行政法、常揚老師民總
By Zanna
at 2016-07-12T17:49
at 2016-07-12T17:49