I was trying to sort an array with sending my array to a function but it gives error when compiling. My sorting algorithm might be wrong but that is not a point. I wonder why my compilers give error. Here is my errors : 

error: conflicting types for ‘sortarray’
 void sortarray(int d[],int size)

note: previous declaration of ‘sortarray’ was here
 void sortarray(int,int);

```
#include<stdio.h>
#define SIZE 9
void sortarray(int,int);

int main()
{
    int i;
    int c[SIZE]= {2,6,8,10,12,89,68,45,37};
    printf("sorting array program: \n");
    for (i = 0; i < SIZE; i++)
    {
        printf("%d ",c[i]);
    }
    printf("\n");
    sortarray(c,SIZE);

    for (i = 0; i < SIZE; i++)
    {
        printf("%d ",c[i]);
    }
    return 0;
}

void sortarray(int d[],int size){

int hold;
int i,j;

for (i = 0; i < size; i++)
{
    for (j = 0; j < size-1; j++)
    {
        d[j+1]=hold;
        d[j+1]=d[j];
        d[j]=hold;
    }
}
return;
}

```