How ( int_min_so_far=INT_MAX;) ?
INT_MAX and INT_MIN
Hi,
the variable int_min_so_far is initialised with INT_MAX because no values in array is greater than this.
So, that we can find the minimum value.
How ( int_min_so_far=INT_MAX;) ?
Hi,
the variable int_min_so_far is initialised with INT_MAX because no values in array is greater than this.
So, that we can find the minimum value.