int main() { int arr[] = {1, -2, -3, 0, 7, -8, -2}; int n = sizeof(arr)/sizeof(arr[0]); printf("Maximum product : %d", maxSubarrayProduct(arr, n)); return 0; }
int main(){ int arr[] = {-2, -3, 0, -2, -40}; int n = sizeof(arr)/sizeof(arr[0]); printf("Maximum Sub array product is %d", maxSubarrayProduct(arr, n)); return 0; }