Answers for "array sort assending c"

C
0

how to sort assending in c

for (i = 0; i < n; ++i){
   for (j = i + 1; j < n; ++j){
      if (num[i] > num[j]){
         a = num[i];
         num[i] = num[j];
         num[j] = a;
      }
   }
}
Posted by: Guest on September-19-2021

Code answers related to "C"

Browse Popular Code Answers by Language