运行后的a从哪里来的?????????
#include<stdio.h>#include<stdlib.h>
#include<time.h>
#define static 30
int rand0();
void function2(int *ggc,int n);
int main()
{
int num1[static][10],a=0,b=0,c;//共10*15个数
int num2[static];
char n[static]={};
srand((unsigned int )time(0));
for(a=0;a<static;a++)
for(b=0;b<10;b++)
num1[a][b]=rand0();
for(a=0;a<static;a++)
{
for(b=0;b<10;b++)
printf("%d ",num1[a][b]);
printf("\n");
}
function2(num2,static);
for(a=0;a<static;a++)
{
for(b=0;b<10;b++)
for(c=0;c<10;c++)
{
if(num1[a][b]==num2[c])
printf("%c",n[c]);
else putchar(' ');
}
putchar('\n');
}
return 0;
}
int rand0()
{
int cc;
cc=rand()%10;
return cc;
}
void function2(int *ggc,int n)
{
int b;
for(b=0;b<n;b++)
*ggc++=b;
}