99地特 計算機概要 - 考試
By Tom
at 2013-06-27T21:06
at 2013-06-27T21:06
Table of Contents
[考題] 國考歷屆考題與考題觀念討論(書裡看到的選這個)請附上想法、出處
出處: 如題
下列以C程式語言撰寫之程式執行後產生之輸出為何?
#include <stdio.h>
main(){
int x=0x011, y=011;
if (--x > y) x=(x-y)%4;
else x=(x+y)%5;
printf(“%d\n”,x);
}
(A)猨0 (B)獏1 (C)獱2 (D)斅3
答案:(D)
請問x是換算成16進制,y是二進制的方式嗎?
--
出處: 如題
下列以C程式語言撰寫之程式執行後產生之輸出為何?
#include <stdio.h>
main(){
int x=0x011, y=011;
if (--x > y) x=(x-y)%4;
else x=(x+y)%5;
printf(“%d\n”,x);
}
(A)猨0 (B)獏1 (C)獱2 (D)斅3
答案:(D)
請問x是換算成16進制,y是二進制的方式嗎?
--
Tags:
考試
All Comments
By Audriana
at 2013-07-01T00:14
at 2013-07-01T00:14
By Mason
at 2013-07-02T15:41
at 2013-07-02T15:41
By Donna
at 2013-07-05T11:41
at 2013-07-05T11:41
By Vanessa
at 2013-07-09T01:57
at 2013-07-09T01:57
Related Posts
公文格式?
By Doris
at 2013-06-27T20:44
at 2013-06-27T20:44
請問有去年養成班儀電中區的錄取分數嗎?
By Victoria
at 2013-06-27T20:26
at 2013-06-27T20:26
台電切割民營化 經部思考
By Ingrid
at 2013-06-27T20:22
at 2013-06-27T20:22
102年台電招考視覺傳播組
By Caitlin
at 2013-06-27T19:43
at 2013-06-27T19:43
後西醫考試用書
By Queena
at 2013-06-27T18:21
at 2013-06-27T18:21