previous | start | next

Windows Example

structure type: s1_t, total size = 24
Member  Address       Size Padding?          typedef struct {      
    c1  0x0028cd08      1 ?                   char c1;            
     n  0x0028cd0c      4 ?                   int n;              
    c2  0x0028cd10      1 ?                   char c2;            
     x  0x0028cd18      8 ?                   double x;   
                 sum = 14                   } s1_t;               

structure type: s2_t, total size = 16
Member  Address      Size Padding?          typedef struct { 
     x  0x0028cd18   8                        double x;      
     n  0x0028cd20   4                        int n;          
    c1  0x0028cd24   1                        char c1;        
    c2  0x0028cd25   1                        char c2;        
              sum = 14                      } s2_t;          


previous | start | next