A
Albert Yan Qing Ge
typedef struct AA {
} A;
when use gcc compiles, sizeof(A) is 0
when use g++ compiles, sizeof(A) is 1
So I can known the length of this pointer is 1
but when I add one member to the structure,
typedef struct AA {
int i;
} A;
Now if use gcc, sizeof(A) is 4
if use g++, sizeof(A) is still 4.
where is this pointer?
Thanks
} A;
when use gcc compiles, sizeof(A) is 0
when use g++ compiles, sizeof(A) is 1
So I can known the length of this pointer is 1
but when I add one member to the structure,
typedef struct AA {
int i;
} A;
Now if use gcc, sizeof(A) is 4
if use g++, sizeof(A) is still 4.
where is this pointer?
Thanks