#include<stdio.h>
#define UN_IN -1
#define COL 10001
#define ROW 5000
int main()
{
int r,c;
long int a[ROW][COL];
for (r=0;r<ROW;r++)
for(c=0;c<COL;c++)
{
a[r][c]=UN_IN;
// b[r][c]=UN_IN;
}
printf("%d %d", a[34][56],a[12][67]);
getch();
return 0;
}
I was solving a problem which required large input. Am using a two dimension array but it gives me segmentation fault when I run it.
Please help.