```
#include<stdio.h>
void functt(int *,int );
int main {
int n;
scanf("%d",&n);
printf("Enter the elements of the array");
int i;
int arr[n];
int *ptr;
ptr=arr;
for (i=0;i<n;i++)
{
    scanf("%d",(p+i));
}
printf("The array elemets are as follows");
for (i=0;i<n;i++)
{
    printf("%d",*(p+i));
}
void functt(arr,n);
return 0;
}

void functt(int *,int n)
{
    int i,j,min;
    for (i=0;i<n;i++)
    {
        min=i;

        for (j=i+1;j<n;j++)
        {
            if(*(p+min)>*(p+j))
            {
                min=j;
            }

        }
    int temp=*(p+min);
    *(p+min)=*(p+j);
    *(p+j)=temp;
}

```

ERRORS:
<https://i.stack.imgur.com/T2iLq.png>

Can't run this code due to these errors
PROGRAM IS TO USE SELECTION SORT VIA POINTERS AND FUNCTIONS.
LOGIC SEEMS TO BE CORRECT I THINK BUT IT GIVES SOME ERRORS AS IN THE PNG ATTACHED ABOVE.