3 ms·
https://stackoverflow.com/questions/10828294/c-and-c-partial-initialization-of-automatic-structure https://stackoverflow.com/questions/10828294/c-and-c-partial.
by johnisgood 8y ago
https://stackoverflow.com/questions/10828294/c-and-c-partial-initialization-of-automatic-structure https://stackoverflow.com/questions/10828294/c-and-c-partial...
> The C and C++ standards guarantee that even if an integer array is located on automatic storage and if there are fewer initializers in a brace-enclosed list then the uninitialized elements must be initialized to 0.
It does work for zero-initialization.