#include #define size 10 int smallest(int arr[],int k,int n); void selection_sort(int arr[], int n); int main(void) { int arr[size]; int i,n,num,beg,end,mid,found=0; printf("\n Enter the no of elements in the array "); scanf("%d",&n); printf("\n Enter the elements :"); for (i=0;inum) end=mid-1; else beg=mid+1; } if (beg >end && found==0) printf("\n %d does not exist in the array "); return 0; } int smallest(int arr[],int k, int n) { int pos= k, small=arr[k],i; for(i=k+1;i