Error in recursion

Q. conver string into integer recursively

ue function type is of int but u r returning a s[0]
s[0] is a character not int
make it int first by
s[0]-‘0’

okay thanks :slight_smile: