Subsets of a given array

want to print all subsets of given array using bitmasking but it is not giving the correct answer. plz help
my solution - https://ide.codingblocks.com/#/s/29614

https://ide.codingblocks.com/#/s/29700

i have made the changes and commented the mistake.