When I compiled this simple C code it's fine but after uncommenting the line it shows segmentation fault. I don't know what's wrong with this. Please help.
#include<stdio.h>
int main()
{
int arr[10002][10002];
int color[10002];
int neigh;
// scanf("%d",&neigh);
return 0;
}
See Question&Answers more detail:os