Code to print all subsets

please can you correct my code for printing all possible subsets (including empty set).

hello @prerak_semwal

dont use the len(u wrote) function,sizeof(arrayname)/sizeof(int) works only if array is declared inside same function.

also base case should be if (i==n) // n is the size of the array

@aman212yadav

now check pls

check now->

@aman212yadav
I think I Know what wrong I was doing…I want to start all over so if I find something intriguing I will get back to you.
Thanks

BTW is there some way that all my doubts are redirected to you only ?

sry, i dont know about it

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.