ВходНаше всё Теги codebook 无线电组件 Поиск Опросы Закон Вторник
26 ноября
841107 Топик полностью
wek (15.05.2018 22:50, просмотров: 112) ответил kaf1 на С какого х... Какие Ваши доказательства (желательно со страницами стандарта).
C99, 6.7.8 Initialization; #19: [...] all subobjects that are not initialized explicitly shall be initialized implicitly the same as objects that have static storage duration. 6.7.8#10: If an object that has static storage duration is not initialized explicitly, then: — if it has pointer type, it is initialized to a null pointer; — if it has arithmetic type, it is initialized to (positive or unsigned) zero; — if it is an aggregate, every member is initialized (recursively) according to these rules; — if it is a union, the first named member is initialized (recursively) according to these rules.