In a bit of code I'm looking at, a 3D array has been initialized like so:
static const char codeset[6][256][10] = {
[0] = { [0x20] = " ",
[0x21] = "!",
[0x22] = """,
[0x23] = "#",
}};
(It does go on to initialize the rest of the cells, I've cut it short to show something readable.)
This does not compile. Is it supposed to? What's going on here?
-std=c99to your command line just to be on the safe side, as it's a C99 extension.