函数传递数组问题,代码不知道哪里错,求教大佬
# include <stdio.h>int aabbcc(int a,int b,int c){
int aaa[12];
int shu1,shunni,shu2;
shu1=c;
shu2=b;
if(a==1) shunni=1;
if(a==3) shunni=1;
if(a==2) shunni=2;
if(a==4) shunni=2;
int i;
if(shunni==1){
for(i=0;i<12;i++){
aaa[i]=(shu1+120-shu2*10+10*i)%120;
}
}
else if(shunni==2){
for(i=0;i<12;i++){
aaa[i]=(shu1+10*shu2+120-i*10)%120;
}
}
for(i=0;i<12;i++){
printf("%d ",aaa[i]);}
printf("\n");
return *aaa;
}
int main(){
int a, b, c;
int aaa[12];
a=1;
b=2;
c=3;
aaa[12]=aabbcc(a,b,c);
int i;
for(i=0;i<12;i++){
printf("%d ",aaa[i]);}
return 0;
}