I am kind of new to C and I cannot figure out why the following code is not working:
typedef struct{
uint8_t a;
uint8_t* b;
} test_struct;
test_struct test = {
.a = 50,
.b = {62, 33}
};
If I do this instead, it works:
int temp[] = {62, 33};
test_struct test = {
.a = 50,
.b = temp
};