Pergunta de entrevista da empresa KPIT Technologies

How do you write -1 in binary?

Resposta da entrevista

Sigiloso

30 de nov. de 2017

0001 make it ones compliment, as 1000 add one to it "1001" for two's compliment. 1001 is the answer, where MSB 1 indicates negative number 0 for positive number.