Pregunta de entrevista de Microsoft

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

Respuesta de la entrevista

Anónimo

5 may 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!