Not get correct output

i tried to generate subsequences of an array but it is giving wrong output. please tell me the flaw in my code and how to correct it.

@shivamgoel150 when you found i==n print array b upto j only not upto n since array b size is j.
and you haven’t taken testcase (t) input.

https://ide.codingblocks.com/s/278770 corrected the code but i am not getting output please find flaw in my code

i have updated and commented mistakes in your code look here https://ide.codingblocks.com/s/278779

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.