This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

array offset

hi all,

I am describing my problem below,

I am using LPC2214, keil Uv3 compiler

I am definig one global array of the size Arr[120][120]
I am initilizing the whale array with the value 254.

unsigned char Array[100][100]

main()
{

Array[0][0]=0;
Array[0][1]=1;
. .
Array[100][100]=10000;

Init_Extint2();

printf("%c",Array[0][0]);

}

I am setting interrupt as rising edge sensitive.

After initializing interrupt when i read value of Array[0][0] its not
giving false value.

If i read the whale array than I found that there is an offset in the
base address of the array[100][100].

I mean the value get shifted to some offset. And the value of the offset
is also random.

Please see if somebody can help me.

thanks in advance

Parents Reply Children
No data