Domanda di colloquio di Google

talk about 1s complement and 2s complement representation

Risposta di colloquio

Anonimo

19 lug 2010

1s complement is the inverse of all bits. 2s complement is used to represent negative values by offsetting 1s complement by 1 so that we avoid the value -0.