Please find error! C code used.

#include<stdio.h>
int arraya( int a[40]);
int main()
{
int a[40], n, b ;
printf(“enter the total numbers in array:”);
scanf("%d", &n);
printf("\nenter the numbers:");
for(int i=0; i<n; i++)
{
scanf("%d", &a[i]);
}
printf("\nThe arranged array is:");
printf("%d", &arraya(a[i]));
}
int arraya(int a[40])
{ int n, b;
for(int i=0; i<n; i++)
{
for(int j=i+1; j<n; j++)
if(a[i]>a[j])
b=a[i];
a[i]=a[j];
a[j]=b;
printf("\n\nAscending : “);
for (int i = 0; i < n; i++)
{
printf(” %d ", a[i]);
}
}
}