Advertisement
Guest User

Untitled

a guest
Jun 29th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. #include <stdio.h>
  2. void sort(int *start, int size)
  3. {
  4. int i,j,temp;
  5. int a[size];
  6. a[size]=*start;
  7. for (i=0;i<size;i++);
  8. {
  9. for (j=i+1;j<size;j++)
  10. {
  11. if (a[i]>a[j])
  12. {
  13. temp=a[i];
  14. a[i]=a[j];
  15. a[j]=temp;
  16. }
  17. }
  18. }
  19. *start = a[size];
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement