[理工] [計組]99交大資聯
1.
I is an integer variable. Which of the following expressions give the correct
result of (1/8)?
a)(I+7)>>3
b)(I>0?I>>3:(I+7)>>3)
c)I>>3
d)(I+((I>>31)&7))>>3
答案給BD
是要如何判斷呢??
-------------------------------------------------------------------------------
2.
http://ppt.cc/c!ej
答案給CD
請問C為什麼是正確的??
-------------------------------------------------------------------------------
3.
Which of the following values have identical representation no matter whether
the machine is big-endian or little-endian?
a)Integer 0
b)IEEE single precision +0.0
c)Integer -1
d)IEEE single precision NaN
答案是給ABC
請問C為什麼正確??
-------------------------------------------------------------------------------
以上
請高手解惑
鋼溫~~
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 223.140.176.223
推
01/10 10:49, , 1F
01/10 10:49, 1F
→
01/10 10:50, , 2F
01/10 10:50, 2F
推
01/10 10:53, , 3F
01/10 10:53, 3F
→
01/10 10:55, , 4F
01/10 10:55, 4F
→
01/10 10:59, , 5F
01/10 10:59, 5F
推
01/10 11:02, , 6F
01/10 11:02, 6F
→
01/10 11:03, , 7F
01/10 11:03, 7F
→
01/10 11:05, , 8F
01/10 11:05, 8F
→
01/10 11:05, , 9F
01/10 11:05, 9F
→
01/10 22:17, , 10F
01/10 22:17, 10F
→
01/10 22:50, , 11F
01/10 22:50, 11F
推
01/10 23:23, , 12F
01/10 23:23, 12F
→
01/13 22:11, , 13F
01/13 22:11, 13F
→
01/20 02:05, , 14F
01/20 02:05, 14F
→
01/20 02:08, , 15F
01/20 02:08, 15F
→
01/20 02:09, , 16F
01/20 02:09, 16F
→
09/11 14:45, , 17F
09/11 14:45, 17F
討論串 (同標題文章)