15-06-2014, 03:47 AM
Is the following example intended to be a violation of Rule 11.9?
While a strict interpretation seems to suggest this a technically a violation, Rule 9.2 specifically allows for an initializer of the form { 0 } which indicates that this (being a violation of 11.9) may not have been intended.
Code:
#include
void f(void) {
uint16_t * var[10] = { 0 }; // violates 11.9?
}
While a strict interpretation seems to suggest this a technically a violation, Rule 9.2 specifically allows for an initializer of the form { 0 } which indicates that this (being a violation of 11.9) may not have been intended.
<t></t>