Domanda di colloquio di Microsoft

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

Risposta di colloquio

Anonimo

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