Which programming language is this?
static const char *names[] = { [2] = "two", [5] = "five" };
void scale(float *restrict out, const float *restrict in, size_t n) {
for (size_t i = 0; i < n; i++)
out[i] = in[i] * 2.0f;
}
Answer: C
Array designated initialisers like
Play Programming Languages ▸
[2] = "two" and the restrict qualifier are C99 features that are not valid C++.