Pergunta de entrevista da empresa Yahoo

How would you know the highest value using binary?

Resposta da entrevista

Sigiloso

18 de jul. de 2013

This sounds like half the question. The quickest figure out the maximum value of an unsigned number on a given system is to take the bitwise complement of 0: unsigned long n = ~0;