I am new so please help me out. I am facing problem in initializing the variable of the given union:
typedef unsigned char uint8_t
typedef unsigned short uint16_t
typedef union uip_ip6addr_t
{
uint8_t u8[16];
uint16_t u16[8];
} uip_ip6addr_t;
When I am doing
uip_ip6addr_t = {0xffffffff};
I am getting the error
error: expected identifier or ‘(’ before ‘=’ token
So please tell me how should I initialize this variable.
User contributions licensed under CC BY-SA 3.0