Recursion subsequences

not able to get output

@chaman9
hello chaman,
you code is correct and running fine .
pls try again

the issue is that they are also asking for size…
if i use sizeof operator then its returning initial size
how to do?

@chaman9
make a global variable ,
initialise it with 0 and whenever u hit ur base case increase the variable value by 1.
in this way u can print the total number of subsequence.

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.

yeaah… thanks a lot!!