Is that possible? I would be happy if someone can guide me where in the standard this is mentioned.
For me, it worked as I expect it to behave using MinGW. However, I want to know if this is standard or not. This is the code I tested:
#include <stdio.h>
int main(void) {
int me[3][2] = {{1, 2}, 3, 4, 5, 6};
int x = 0;
while(x<6) printf("%d_", ((int*)me)[x]), ++x;
return 0;
}
The output is: 1_2_3_4_5_6_.
I think it’s standard but I wouldn’t say I have definite proof.
And later, although not specifically for arrays, it gives an example of inconsistently bracketed initialization: