C ++ program to calculate sum of Bit - wise and sum of all subsets of an array
#include <bits/stdc++.h> NEW_LINE using namespace std ; #define BITS  32 NEW_LINE int andSum ( int arr [ ] , int n ) { int ans = 0 ;