Recursion convert string to integer

@jaiskid @saurabh2 unable to find logic for recursion case and how to store previously calculate d answer https://ide.codingblocks.com/s/122251

You can simply take a function with parameter as input string and its length and check
if(len==1)
{
return str-‘0’;
}
return(10
convertstr_int(str,len-1)+str[len-1]-‘0’);