Question: c++ program Problem 2: Write a function tolnt that takes a string as an argument, and returns its equivalent integer value. Don't use atoi If
c++ program
Problem 2: Write a function tolnt that takes a string as an argument, and returns its equivalent integer value. Don't use "atoi" If the input was "00213", then the output should be "213" Note: Try to make it work on negative numbers as well
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
