Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Clarification of Rule 17.4
#1
According to the description of the rule 17.4:
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>


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)