Recursion problem


can you plz explain why the ans is coming 1010 in this case,as when im am dry running this code ,ans is 110??? plz help

Hi @akb.tech17
When you dry run your code then also you will get 1010 as output.
Here is the dry run :