Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- void sort(int *start, int size)
- {
- int i,j,temp;
- int a[size];
- a[size]=*start;
- for (i=0;i<size;i++);
- {
- for (j=i+1;j<size;j++)
- {
- if (a[i]>a[j])
- {
- temp=a[i];
- a[i]=a[j];
- a[j]=temp;
- }
- }
- }
- *start = a[size];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement