Recursion-subsequences


Help to count no of subsequences,i can’'t find why it is giving error.

@Yukta hey yukta the problem with your code is that your function doesn’t return any count in the main function the return of the function is void type so count doesn’t reflect in the main right do one thing make a seperate function for the count the recursive call .

i have tried but it is still giving error

@Yukta hey yukta misra just count the recursive call and return to the main maintain the count variable and which is equal to 0 then add the recursive call to count .