daily pastebin goal
72%
SHARE
TWEET

Untitled

a guest Sep 14th, 2017 85 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void bubblesort(Student *a, int n)
  2. {
  3.     int i,j;
  4.     for (i=0;i<n-1;i++)
  5.         for (j=0;j<n-i-1;j++) {
  6.             if (a[j+1]<a[j]) {
  7.                 Student tmp = a[j];
  8.                 a[j] = a[j+1];
  9.                 a[j+1] = tmp;
  10.             }
  11.         }
  12. }
RAW Paste Data
Top