Generate Subsets using Bit masking

Hello sir/ma’am,
sharing my code for this problem . it shows TLE. Could you please help me figure out the error? https://ide.codingblocks.com/s/247389

hello @priyanshi.agarwal3405


dont modify i.
store it in some temporary variable and modify that variable.

Yeah i did that and it worked. But why do we need to do that?

if we will modify i then we will not be able to manage this iteration count image .

Okay, got it…Thank you !!!