24-04-2007, 12:14 PM
According to the description of the rule 17.4:
Given this I do not understand why the following is allowed:
Quote:Array indexing shall only be applied to objects defined as an array type..
Given this I do not understand why the following is allowed:
Code:
uint8_t a[10];
uint8_t *p;
p = a;
p[5] = 0; /* why is this compliant? */
<t>Graham Andrews<br/>
Edinburgh Design Centre<br/>
Analog Devices Inc</t>
Edinburgh Design Centre<br/>
Analog Devices Inc</t>