D
Don
If I have
unsigned char mytest[10];
mytest[0] = 0x1;mytest[1] = 0x2;mytest[2] = 0x3;
mytest[3] = 0x4;mytest[4] = 0x5;mytest[5] = 0x6;
mytest[6] = 0x7;mytest[7] = 0x8;mytest[8] = 0x9;
mytest[9] = 0x10;
and
unsigned char* ptr;
ptr = mytest;
and then print *(ptr+5) then I would get 0x6.
But what if I used the syntax and printed:
*(ptr+5+1) would I then get 0x7? Or is this interpreted otherwize?
unsigned char mytest[10];
mytest[0] = 0x1;mytest[1] = 0x2;mytest[2] = 0x3;
mytest[3] = 0x4;mytest[4] = 0x5;mytest[5] = 0x6;
mytest[6] = 0x7;mytest[7] = 0x8;mytest[8] = 0x9;
mytest[9] = 0x10;
and
unsigned char* ptr;
ptr = mytest;
and then print *(ptr+5) then I would get 0x6.
But what if I used the syntax and printed:
*(ptr+5+1) would I then get 0x7? Or is this interpreted otherwize?