title: Data Sorting Program using Pointers, Arrays, and Bubble Sorting having Syntax Errors
body: <p>How would I get rid of these syntax errors that are not allowing me to compile? </p>
  
  <p>This has the correct structure for what is doing but these errors are preventing me from testing it out.</p>
  
  <p>I am so close to testing this. I did int <em>array and int</em> pointer to fix some of these errors but doing them in the lines with the next errors does not fix them.</p>
  
  <p>It's all the same type of error.</p>
  
  <pre><code>Pointers.c: In function ‘ArrayInitialize’:
  Pointers.c:19: error: expected ‘;’ before ‘)’ token
  Pointers.c:23: error: expected ‘;’ before ‘)’ token
  Pointers.c:25: warning: assignment makes integer from pointer without a cast
  Pointers.c: At top level:
  Pointers.c:32: error: expected ‘)’ before ‘array’
  Pointers.c:44: error: expected ‘)’ before ‘array’
  Pointers.c:56: error: expected ‘)’ before ‘array’
  Pointers.c:78: error: expected ‘)’ before ‘pointer’
  
  #include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  
  #define SIZE_OF_ARRAY 5
  
  //=============================================================================
  
      int *IntegerPtr;
      int  ArrayInt[SIZE_OF_ARRAY]; 
      int *ArrayPtr[SIZE_OF_ARRAY];
  
  //----------------------------------------------------------------------------- 
  
  void ArrayInitialize(int *array,int *pointer){
  
    int i;
    srand(getpid());
  
    for (i =0, i &lt; SIZE_OF_ARRAY; i++;){
  
      array[i] = (int)rand();
  
    for (i =0, i &lt; SIZE_OF_ARRAY; i++;){
  
          pointer[i] = &amp;array[i];
                                        }
                        }
      }
  
  //-----------------------------------------------------------------------------
  
  void ArrayPrint(ArrayInt array){
   int i;
  
     for (i =0, int &lt; SIZE_OF_ARRAY; i++;){
      printf("%d : %10d \n",i,array[i]);
  
   }
  printf("\n");
  }
  
  //-----------------------------------------------------------------------------
  
  void ArrayPointerPrint(ArrayInt array){
   int i;
  
     for (i =0, i &lt; SIZE_OF_ARRAY; i++){
      printf("%d : %10d \n",i,pointer[i]);
  
   }
  printf("\n");
  }
  
  //-----------------------------------------------------------------------------
  
  void ArrayBubbleSort(ArrayInt array){
  
    int i;
    int j;
    int temp;
  
    for( i = (SIZE_OF_ARRAY - 1); i &gt;= 0; i-- )
    {
      for( j = 1; j &lt;= i; j++ )
      {
        if( *(array+(j-1)) &gt; *(array+j))
        {
           temp = *array+(j-1));
          *array+(j-1)) = array+(j));
          *array+(j) = temp;
        }
      }
    }
  }
  
  //-----------------------------------------------------------------------------
  
   void PointerBubbleSort(ArrayPtr pointer){
  
    int i;
    int j;
    int temp;
  
    for( i = (SIZE_OF_ARRAY - 1); i &gt;= 0; i-- )
    {
      for( j = 1; j &lt;= i; j++ )
      {
        if( *(pointer+(j-1)) &gt; *(pointer+j))
        {
          temp = *pointer+(j-1));
          *pointer+(j-1)) = pointer+(j));
          *pointer+(j) = temp;
        }
      }
    }
  }
  
  //----------------------------------------------------------------------------- 
  
   int main(void) {
  
      int array[SIZE_OF_ARRAY]; 
  
      int pointer[SIZE_OF_ARRAY];
  
      ArrayInitialize(array,pointer);
  
      ArrayPrint(array);
  
      PointerBubbleSort(pointer);
  
      ArrayPointerPrint(pointer);
  
      ArrayBubbleSort(array);
  
      ArrayPrint(array);
  
      ArrayPointerPrint(pointer);
  
      return(EXIT_SUCCESS);
  
    }
  </code></pre>