Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   two's complement (http://www.go4expert.com/forums/twos-complement-t24213/)

cindrilla 19Dec2010 18:22

two's complement
 
hi frinds i want to know how this one's complement & two's complement is done in 16bit system

xpi0t0s 20Dec2010 13:29

Re: two's complement
 
Same way it's done in any size system. One's complement just flips the bits, two's complement flips the bits then adds one. 1's comp of 0001 is 1110; 2's comp is 1111.


All times are GMT +5.5. The time now is 19:18.