C++ Solution
Code\n\nclass Solution \n{\npublic:\n    int maxSubarrays(vector<int>& nums) \n    {\n        int andd=1;\n        for(auto it: nums) andd&=it;\n        if(andd
# Code\n```\nclass Solution \n{\npublic:\n    int maxSubarrays(vector<int>& nums) \n    {\n        int andd=1;\n        for(auto it: nums) andd&=it;\n        if(andd!=0) return 1;\n        int ans=0, i=0, sum=nums[0];\n        while(i<nums.size())\n        {\n            sum&=nums[i];\n            if(sum==0)\n            {\n                if(i+1<nums.size()) sum=nums[i+1];\n                ans++;\n            }\n            i++;\n        }\n        return max(1,ans);\n    }\n};\n```
['C++']