Ehm... obviously I was talking about 2c(1)...

Too much coffe, today... :-D

2015-03-10 16:53 GMT+01:00 Giacomo Tesio <giacomo@tesio.it>:
2c(2) states:

Array initializers can specify the indices of the array in
  square brackets, as
      int a[] = { [3] 1, [10] 5 };
  which initializes the third and tenth elements of the
  eleven-element array a.

This is somewhat confusing: the third and the tenth element should have index 2 and 9. Moreover if the tenth element is actually referred by index 10, why the array should hold eleven elements?

A simple check shows that actually the array has 11 elements and the one initialized are the forth and the eleventh.


Giacomo