This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

how many mem does union cost?

struct structSeperate
{
unsigned char uaHigh;
unsigned char uaLow;
};
union OneIntorTwoBytes
{
unsigned int un;
struct structSeperate ua;
};

void AFunction()
{
OneIntorTwoBytes unionMy;
...
...unionMy...//
...
}

In the above example, Could you please explain how many bytes of free mem will be allocated for AFunction()? How many bytes of free mem will be allocated for the whole module?

Parents Reply Children
No data