[理工] 101清大计系

楼主: waynetooni (wegogo)   2019-02-03 18:50:59
https://imgur.com/k6tnnGe
https://imgur.com/wtSv3vP
第一题的b小题
code注解有说execlp()会destroying the memory image of the program containing the execlp() system
那这样在算有几个process被创造时,要把被毁掉的process算进去吗?
https://imgur.com/rXxbTq4
https://imgur.com/xpy92a8
第8题c小题要求有号数x-y
我的作法是把y先换成2进位,再取y的2捕数,变成-y
然后算x+(-y),再转回Hex,得到的答案跟b小题一样 0x85B3
这样算有错吗?
我之前有看到有人写x-y = -0xBA09-0x3456 = -(0xBA09+0x3456)=-0xEE5F
感觉有点奇怪...
先感谢各位高手了~~

Links booklink

Contact Us: admin [ a t ] ucptt.com