求大神指点,我这代码为什么把数组numbers【10000】改成numbers【】最后结果不一样
代码#include<stdio.h>int main()
{
int a,b,i,j;
int numbers[10000]={0};
scanf("%d %d",&a,&b);
for(i=0;i<b-a+1;i++)
{
numbers[i]=a+i;
for(j=2;j<numbers[i];j++)
{
if(numbers[i]%j==0)
break;
}
if(j==numbers[i])
printf("%d ",numbers[i]);
}
return 0;
}