#include <stdio.h>
#include <stdlib.h>
int cmp(const void *a,const void *b){
// return *(int*)a-*(int*)b; //正序 从小到大
// return *(int*)b-*(int*)a; //倒序,从大到小
}
int main(void){
int arr[] = {20,30,12,3,4,534,98,13,5};
int length = sizeof(arr)/sizeof(int);
qsort(arr,length,sizeof(int),cmp);
for(int i = 0;i<length;i++){
printf("%d ",arr[i]);
}
}