- 博客(2)
- 收藏
- 关注
原创 How to Realize the Two's Complement of -128?
We all know that -128 can be represented as [10000000] as a 8-bit two's-complement number. However, it is not in accordance with the convention which bits but the most significant one are inverted and
2013-10-29 13:11:05 419
原创 Code to print the byte representation of program objects
This code uses casting to circumvent the type system. Firstly, cast pointers to byte_pointer, pointing to an object of type "unsigned char" which represents a single byte. Seondly, printf and cout ar
2013-10-28 13:30:15 545
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人