<div dir="ltr">Hi,<div><br></div><div>The following code outputs "10 11 0" with GCC, but "10 11 7" with Clang. Is there anyone who knows which is correct? The C99 spec seems to be a bit unclear about this.</div>

<div><br><div><br></div><div><div>#include <stdio.h></div><div><br></div><div>int main() {</div><div>  int x[1][3] = {[0][2] = 7, [0] = {10, 11}};</div><div>  printf("%d %d %d\n", x[0][0], x[0][1], x[0][2]);</div>

<div>}</div></div><div><br></div></div></div>