Pergunta de entrevista da empresa Microsoft

Phone interview question: Describe how you would implement the C standard library function atoi.

Resposta da entrevista

Sigiloso

5 de mai. de 2009

I've actually implemented this many time, so it was pretty straightforward to me. Make sure you define your loop to cover your corner cases, and don't forget about negative numbers!