相关代码 |
|
#include static struct sss{ int f; } a[10]; int main (void) { printf ("++++Array of struct with int:\n"); printf ("size=%d,align=%d,displ-a[5]=%d,align-a[5]=%d\n", sizeof (a), __alignof__ (a), (char*)&a[5] - (char*)a, __alignof__ (a[5])); return 0; }
相关资源 |
|