C++
\nclass Solution {\npublic:\n    int arraySign(vector<int>& nums) {\n        int n = nums.size();\n        int neg = 0; // number of negative numbers in given a
```\nclass Solution {\npublic:\n    int arraySign(vector<int>& nums) {\n        int n = nums.size();\n        int neg = 0; // number of negative numbers in given array\n        for(int i = 0; i < n; i++) {\n            if(nums[i] == 0) return 0; // there is no doubt, that if one of the multipliers is zero, the product is also zero\n            if(nums[i] < 0) neg++; // count negative numbers in our array\n        }\n        return neg % 2 == 0 ? 1 : -1; // obviously, if the number of negative numbers is odd, the product is also odd\n    }\n};\n```
['C']