97年地特計算機概要 - 考試
By Zanna
at 2013-05-20T14:27
at 2013-05-20T14:27
Table of Contents
版上高手好~
我想請教97年地特的計概的第36題
題目如下,答案是D
http://wwwc.moex.gov.tw/ExamQuesFiles/Question/097/038000c60.pdf
36. 下列以 C 程式語言撰寫之程式執行後產生之輸出為何?
#include <stdio.h>
main(){
int x = 3, y = 1; printf(“%d\n”, x >> 1 | y << 1 );
}
(A)0 (B)1 (C)2 (D)3
我看坊間的解答
寫x>>1為1,y<<1為2
01 or 10 為 11,即3
但我不懂為何x>>1為1,y<<1為2 ??
可否請版上高手教我一下,謝謝您們~~
--
Tags:
考試
All Comments
By Isabella
at 2013-05-23T08:03
at 2013-05-23T08:03
By Dorothy
at 2013-05-23T21:41
at 2013-05-23T21:41
By Edwina
at 2013-05-24T10:19
at 2013-05-24T10:19
By Edith
at 2013-05-26T11:50
at 2013-05-26T11:50
By Agnes
at 2013-05-27T09:23
at 2013-05-27T09:23
Related Posts
基本電學
By James
at 2013-05-20T14:20
at 2013-05-20T14:20
請問法大的特別法跟公司法還會考嗎?
By Todd Johnson
at 2013-05-20T14:16
at 2013-05-20T14:16
一般行政書的選擇
By Zanna
at 2013-05-20T14:15
at 2013-05-20T14:15
財政學(所得稅理論)
By Odelette
at 2013-05-20T14:09
at 2013-05-20T14:09
100地特的經濟 第11題
By Linda
at 2013-05-20T14:02
at 2013-05-20T14:02