Hi guys,
I was running a simple code on Fedora 11. it has this error " segmentation fault". The code is too simple to have any mistakes........ Can anyone help me with this? What is this "segmentation fault".
Thank you very much.
#include "stdio.h"
int main()
{
int T[1001][4001];
int i=0;
int j=0;
for(j=0;j<1001;j++)
{
for(i=0;i<4001;i++)
{
T[j][i]=0;
}
}
printf("Thank you!\n");
return 0;
}
I saved this file as mainapp.cpp.
command line:
g++ mainapp.cpp -o test
./test
then it says segmentation fault........