here how string 123 got converted into int 123
General doubt in recursion
hello @viknesh1375
123 - call on - > 12 - call on -> 1 - call on ->0
return 123 <- 12 * 10 +3 < -return 12 < - 1 * 10+2 <- return 1 - 0*10 + 1 <–return 0
this is how we converted stirng “123” into 123
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.