I'm not sure if I can initialize members of a struct the lazy way. For
example, let's say I have a struct defined as below:
typedef struct _ABC
{
BOOL A;
BOOL B;
BOOL C;
} ABC;
If I want to initialize all members of the struct as false, is there a
way of changing the state of the members all at once like what I have
attempted below:
ABC hi = FALSE; // or something along similar lines as this as this is
invalid
or would the only way of modifying the members be modifying each
member's state individually?
example, let's say I have a struct defined as below:
typedef struct _ABC
{
BOOL A;
BOOL B;
BOOL C;
} ABC;
If I want to initialize all members of the struct as false, is there a
way of changing the state of the members all at once like what I have
attempted below:
ABC hi = FALSE; // or something along similar lines as this as this is
invalid
or would the only way of modifying the members be modifying each
member's state individually?
Comment