So, I have this array and pointer:
char array [6];
char *ptr;
And this list of array [6] addresses and contents:
0x5010 a
0x5011 b
0x5012 F
0x5013 H
0x5014 X
0x5015 Y
I'm looking for the values of the following:
a) &array[0]
b) array[0]
c) *ptr
d) (*ptr)+2
e) (*ptr+3)
f) *(ptr+3)
g) &array[3]
h) *(array+3)
a) should be a?
b) a
I don't know about the rest. How do I do this?