int i;
int arr[i];
for ( int i = 0; i <= 10; i++)
{
arr[i] = 0;
printf("%d\n",i);
}
数组越界 使程序陷入死循环。如下图所示: