if I have the union in a struct as below
if i want to find the size of the variable value, do i do this?Code:typedef struct{ union{ uint8_t value; }u; }s;
does this return the size which is 1 byte?Code:s testStruct; sizeof(testStruct.u.value);