previous | start | next

Alignment and struct types

Consider this struct type:

typedef struct {
  char c1;
  int n;
  char c2;
  double x;
} s1_t;
   

It might be different in Windows than in Linux.



previous | start | next