C - Structure and Union
C - Structure and Union
51. What is the size of ptr1 and ptr2?
struct x
{
int j;
charr k [100];
unsigned i;
};
int *ptr1:
struct x *ptr2;
struct x
{
int j;
charr k [100];
unsigned i;
};
int *ptr1:
struct x *ptr2;
- same depending on the model used
- 2, 104
- 2, undefined for memory is not allocated
- 2, 4