I got a program in a book
#include <stdio.h>
int main( )
{
struct data
{
int a __attribute__( ( aligned ( 8 ) ) ) ;
char ch __attribute__( ( aligned ( 1 ) ) ) ;
float s __attribute__( ( aligned ( 4 ) ) ) ;
} ;
struct data e ;
printf ( "\n%u %u %u", &e.a, &e.ch, &e.s ) ;
printf ( "\n%d", sizeof ( e ) ) ;
return 0 ;
}
when I run it on cygwin installed on windows 7 machine. I am getting output
2280712 2280716 2280720 16
why this output I am getting? I was expecting the output
2280712 2280720 2280721 13