Convert string to int

Take as input str, a number in form of a string. Write a recursive function to convert the number in string form to number in integer form. E.g. for “1234” return 1234. Print the value returned.

how to approach this question with recursion?

Hi priyanshi,your this question has been explained on the other thread.