Hints:
1. Check that each character is a numeric character. Take into consideration the base in which the conversion is sought.
2. Identify the character in ASCII and convert it to numeral ’1′ -> 1
3. Iterate over string and Multiply by the appropriate base and add it to temp to find the value of the number.
Also take care that number is -ve
Advertisement