Max Sum Subarray

Shouldn’t the variable maxsum be initialised with INT_MIN rather than 0 ??
As, if the the array has only negative elements, the maxsum would remain 0 and the real answer cannot be 0.