已知序列(25,16,32,18,20,36,12)请给出采用冒泡排序对该序列做升序排序时的每一趟结果

问题描述:

已知序列(25,16,32,18,20,36,12)请给出采用冒泡排序对该序列做升序排序时的每一趟结果

#include #define N (sizeof(a) / sizeof(*a))void display(int a[],int n);int main() {\x05int a[] = {25,16,32,18,20,36,12};\x05int i,j;\x05printf("original:\n");\x05display(a,N);\x05printf("sorted:\n");\...