I am not sure if comma in array initializer is actually a sequence point. Is blow statement has defined behavior? The standard does not discuss side-effects during aggregate initialization specifically (I think), so I assumed implementation behavior myself, but I had to ask
char s[7] = {'a', s[0], s[1], s[2], s[3], s[4], 0};
Aucun commentaire:
Enregistrer un commentaire