#include<stdio.h>
void maopao(int* a, int n);
int main(void)
{
int i[]= {550,55,88,99,669168,6125,151,1515,20,1,};
int longe = (sizeof(i) / sizeof(i[0]));
for (int r = 0; r< sizeof(i) / sizeof(i[0]); r++) {
void maopao(int*a, int longe);
}
for (int n = 0; n < sizeof(i) / sizeof(i[0]); n++)
printf(“%d “, *(i + n));
return 0;
}
void maopao(int *a, int n)
{
int t;
for (int b=0; b < n; b++) {
if(* (a + b) > *(a + b + 1)){
t = *(a + b);
*(a + b) = *(a + b + 1);
*(a + b + 1) = t;
}
}
}
发错版了 挪到学习帖了