I am writing a C program using Dev-CPP. It uses a 3 dimensional array to store around 350 values as shown below.
db[2][0][1]=3278;
db[2][0][4]=2368;
db[3][0][3]=6686;
db[2][0][6]=7224;
..
..
..
I get a valid output when I read the array with the following code
zone = db[2][0][1];
printf("%d",zone);
but it stops abruptly with a error msg when i run a code like this...
int h,t,o;
h=2;
t=0;
o=1;
zone = db[h][t][o];
The program stops exactly when the last line is executed...:sad: . It get compiled without any error
help me to read the array using the int values...