Write a C Program to Sort given data
/**************************************************************/
/*Programmed by : Vivek Patel**********************************/
/*For Bugs Free feel to contact********************************/
/*Website : www.vivekpatel.cjb.net*****************************/
/*Email : vivek_patel9@rediffmail.com**************************/
/**************************************************************/
#include
#include
void main(){
int *arr,i,j,tmp,n;
printf("Enter how many data you want to sort : ");
scanf("%d",&n);
for(i=0;i
for(i=0;i
for(j=i+1;j
tmp = *(arr+i);
*(arr+i) = *(arr+j);
*(arr+j) = tmp;
}
}
}
printf("\n\nAfter Sort\n");
for(i=0;i
getch();
}