I have this struct:
typedef struct {
GPIO_TypeDef* GPIO_Reg;
uint16_t GPIO_Pin;
uint16_t status;
} PinType;
Then if I declare this array:
PinType array[10];
The PinType
elements in the array are initialized with some default values?
For example, if I write this:
printf("%d", array[1].status);
Should I see 0
as output? Or the initial value depends on the content of the memory before I declared the array?