#include
#include
#define MAXSIZE 50
int arr[MAXSIZE],n;
void selectionsort(int arr[],int n);
void main()
{
int i;
printf("Enter the size of array\n");
scanf("%d",&n);
printf("\nEnter the values \n");
for(i=0;iarr[j])
{
min=j;
}
temp=arr[i];
arr[i]=arr[min];
arr[min]=temp;
}
}
}
No comments:
Post a Comment