Re: [計量] 請強人協助解題。
※ 引述《new135135 (我恨ETS)》之銘言:
: how many bits of computer memory will be reauired to store the integer,
: where x=-根號810000, if each digit required 4 bits of menory
: and the sign of X requires 1 bit?
: 這題我想了好久,不知道怎麼解。有可能是我語意理解錯誤。懇請強人協助。
: 答案是13,但為何?
how many bits of computer memory will be reauired to store the integer,
^^^^^^^^required吧?
存這個x整數需要多少記憶體呢?
each digit required 4 bits of menory and the sign of X requires 1 bit
x的每一位的數字要4 bits,而x的正負號也要1 bit
x=-√810000=-900,有三位數字,3*4 bits,一個正負號,1 bit,因此是3*4+1=13
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.112.150.172
推
02/10 20:01, , 1F
02/10 20:01, 1F
討論串 (同標題文章)
完整討論串 (本文為第 2 之 2 篇):
計量
1
1