How is the output array being printed?

Where are we actually printing the subsequences for the recursive case since ‘cout’ is used when in[i]==’\0’ i.e. in the base case.

whenever the length of the input sequence becomes 0 or(it reaches ‘/0’) a new sub sequence is generated and we print that in the cout statement

Yes, but on the previous line, we declare output array to be zero, then printing it out doesn’t make any sense.

can you please show the line you are talking about or share your code

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.