R
Rahul
Hi Everyone,
I have the following union declarations,
union sample
{
int p;
virtual void fun();
void display(); // accessing value of p...
};
Now assuming that the size of int is 4 bytes and that of a pointer
too is four bytes, would it work as expected?
memory of the union is the same as that of the largest member of the
union...
Thanks in advance!!!
I have the following union declarations,
union sample
{
int p;
virtual void fun();
void display(); // accessing value of p...
};
Now assuming that the size of int is 4 bytes and that of a pointer
too is four bytes, would it work as expected?
memory of the union is the same as that of the largest member of the
union...
Thanks in advance!!!