國家招考徵才資訊 gov_owned
人生有兩件不用看臉的競爭,一件是考試,一件是股市。
Saturday, February 11, 2012
x與y皆為16bits 2`s補數整數 求x/y=?
出處:100關務人員
題目:x=1111 1111 1001 1100 y=0000 0000 0001 1001 x與y皆為16bits 2`s補數整數
求x/y=?
答案最後跟x等長,x/y=1111 1111 1111 1011+1=1111 1111 1111 1100
參考資料
http://tim.diary.tw/2009/08/24/twos-complement/
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment