ВходНаше всё Теги codebook 无线电组件 Поиск Опросы Закон Среда
17 апреля
841068 Топик полностью
POV_ (15.05.2018 21:20, просмотров: 1) ответил Aleksey_75 на ааааа, с IAR AVR это на раз прокатывает
Неуказанные байты не просто не инициализированы, а вроде жёстко нули... en.cppreference.com/w/c/language/array_initialization When an array is initialized with a brace-enclosed list of initializers, the first initializer in the list initializes the array element at index zero (unless a designator is specified) (since C99), and each subsequent initializers without a designator (since C99)initializes the array element at index one greater than the one initialized by the previous initializer. int x[] = {1,2,3}; // x has type int[3] and holds 1,2,3 int y[5] = {1,2,3}; // y has type int[5] and holds 1,2,3,0,0 int z[3] = {0}; // z has type int[3] and holds all zeroes