I have union
union Data
{
uint8_t * utf8;
uint16_t * utf16;
uint32_t * utf32;
};
and a variable Data data;
How can I cast data
to void*
? The union size is equal to size of any pointer because It contains only pointers. So why I can't do this like (void*)data