title: Sorting a 30 element array in C
body: <p>Im trying to do a program that sorts 30 elements of an array.Im getting an sintaxe error, i was hoping someone could help me. I think it's happening when im calling the SelectionSort function, havent written c in a while, so i guess its sintaxe. valores means values, and valoresordenados means sorted values.</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  
  #define N_max 30
  void SelectionSort (int *valores[], int n)
  int main(void){
      int n,j,valores[],N_max;
      n=N_max; // Defining n as the number of elements in the arrray
  
      for(j=0;j&lt;n;j++){
          valores[j]=30-j; //Inserting values in the array's positions
      }
      SelectionSort(int valores[n], int n); //Calling the subprogram
      printf("valoresordenados[%d]= %d",j, valores[j]);
      system("pause");
      return (0);
  }
  void SelectionSort (int *valores[], int *n) { //Subprogram that sorts the values of the array
      int j,z,min,aux;
      for(j=0;j&lt;n-1;j++){
          min=j;
          for(z=j+1;z&lt;n;z++){
              if(valores[z]&lt;valores[min])
              min=z;
          }
      }
      if(valores[j]!=valores[min]){
          aux=valores[j];
          valores[j]=valores[min];
          valores[min]=aux;
  
      }
  }
  </code></pre>