Subset -recursion. I have a doubt in que in which we have to print all subsets whose sum is k


dont get any output plz help me with this que

hello @Ashu1318
image

use loop here and print only first j element.

not getting any output

a) why r u using char datatype?
we aare given numbers so use int.

ur updated 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.