This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
i use "sizeof" to get the size of a struct ,defined as: typedef struct _A { long data1; unsigned short data2; long data3; }A; i guess the sizeof(A) should be 10 .however when i compile and print the value of "sizeof(A)" ,the reult is 12!!
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |