impakt
Member level 4
Hello all,
I have a question about unions. Suppose we have the following piece of code:
Hoe much memory is allocated for the union in this case?
I have a question about unions. Suppose we have the following piece of code:
Code:
typedef struct {
...
}type_struct1;
typedef struct {
...
}type_struct2;
typedef union{
type_struct1* var1;
type_struct2* var2;
}type_union;