Pergunta de entrevista da empresa Ford Motor Company

Write the code to convert the digital numbers in string to integer, for example: "23456789" --> int value=23456789. No library function can be used except for strlen().

Resposta da entrevista

Sigiloso

5 de mar. de 2020

I wrote the code in C++ function with a small mistake in handling with the negative integer.