Łukasz Przeniosło
Łukasz Przeniosło

Reputation: 2959

Is post and pre increment as array index mentioned in Misra?

Is the given example:

uint32_t i = 0U;
uint32_t arr[5U] = { 0U };
uint32_t b = arr[i++];

Anyhow not compliant with any Misra rules? Can one use pre increment and post increment inside of array indexing? Rule 12.1 is not clear to me about that.

Upvotes: 3

Views: 51

Answers (0)

Related Questions