Code showing wrong output

MY CODE IS SHOWING WRONG OUTPUT

u would have to first find length of lcs and then then find string… refer this https://ide.codingblocks.com/s/590764

i want to use recursive method so can you indicate the error i am doing ?

ok… just go through this once https://www.techiedelight.com/longest-common-subsequence-finding-lcs/ … it has very nice explanation as well as code… if u still face any doubt do let me know

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.