i need pseudo code and flowchart of the following program #include"structures.h"> void swap(int* a, int* b){ //basic swap functions for two integers int hold = *a; *a = *b; *b = hold; } void...



i need pseudo code and flowchart of the following program



#include"structures.h">
void swap(int* a, int* b){ //basic swap functions for two integers
int hold = *a;
*a = *b;
*b = hold;
}
void bubbleSort(int* arr, long* dists, int num){ //bubbleSort function for sorting the list obtained by 'dist' file
int x, y;
for(x = 0; x < num="" -="" 1;="">
for(y = 0; y < num="" -="" x="" -="" 1;="">
if(dists[arr[y] > dists[arr[y+1]]]){
swap(&arr[y], &arr[y+1]);
}
}
}
}



Jun 07, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here