Find count of negative numbers , count of zeros , maximum valued negative number , minimum valued positive number and product of non - zero numbers
int max_neg = INT_MIN ; int min_pos = INT_MAX ; int count_neg = 0 , count_zero = 0 ; int prod = 1 ; for ( int i = 0 ; i < n ; i ++ ) {