I\'m coding in C++, and I have the following code:
int array[30]; array[9] = 1; array[5] = 1; array[14] = 1; array[8] = 2; array[15] = 2; array[23] = 2; array[1
I remember, for static initialization exist syntax like:
int array[30] = { [9] = 1, [8] = 2 }
And so on. This works in gcc, about another compilers - I do not know.