101 地特四等計算機概論第39題 - 考試
By Eartha
at 2013-06-28T22:58
at 2013-06-28T22:58
Table of Contents
[考題] 國考歷屆考題與考題觀念討論(書裡看到的選這個)請附上想法、出處
#include <stdio.h>
main(){
int x = 007, y = 010;
if ( ++x >= y-- ) { if (y = x < 0) x = y + 4; }
else x = x + 3;
printf(“%d\n”,x – y );
}
(A)0 (B)2 (C)4 (D)8
這題有陷阱
x與y 是八進制嗎?..
用八進制與十進制算都不是正確答案(D)
更不可能是十六進制
有高手可以請教幫忙釐清觀念嗎!?
謝謝
--
#include <stdio.h>
main(){
int x = 007, y = 010;
if ( ++x >= y-- ) { if (y = x < 0) x = y + 4; }
else x = x + 3;
printf(“%d\n”,x – y );
}
(A)0 (B)2 (C)4 (D)8
這題有陷阱
x與y 是八進制嗎?..
用八進制與十進制算都不是正確答案(D)
更不可能是十六進制
有高手可以請教幫忙釐清觀念嗎!?
謝謝
--
Tags:
考試
All Comments
By Yuri
at 2013-07-02T21:15
at 2013-07-02T21:15
By Charlotte
at 2013-07-04T01:57
at 2013-07-04T01:57
By Candice
at 2013-07-05T18:07
at 2013-07-05T18:07
By Necoo
at 2013-07-06T04:15
at 2013-07-06T04:15
By Freda
at 2013-07-07T00:58
at 2013-07-07T00:58
By Oliver
at 2013-07-07T18:10
at 2013-07-07T18:10
By Suhail Hany
at 2013-07-12T09:31
at 2013-07-12T09:31
By Poppy
at 2013-07-15T02:26
at 2013-07-15T02:26
By Gary
at 2013-07-15T16:01
at 2013-07-15T16:01
Related Posts
生物.方智有機題庫出清
By Ivy
at 2013-06-28T22:24
at 2013-06-28T22:24
台北&高雄三元課程安排
By Elvira
at 2013-06-28T22:08
at 2013-06-28T22:08
關於基本電學
By Mason
at 2013-06-28T21:52
at 2013-06-28T21:52
後中舊書便宜賣
By Madame
at 2013-06-28T21:22
at 2013-06-28T21:22
一般警察身高複檢
By Yuri
at 2013-06-28T20:58
at 2013-06-28T20:58