All pastes #2052549 Raw Edit

Something

public text v1 · immutable
#2052549 ·published 2011-05-01 16:41 UTC
rendered paste body
    /* calcula o máximo elemento de um array de 'n' inteiros*/
    int max_array( int *a, int n )
    {
      int i, max;
    
      max = a[0];
      for( i=1; i<n; i++ )
        if( a[i] > max )
          max = a[i];
    
      return max;
    }