Skip to content

Instantly share code, notes, and snippets.

@odeblic
Created July 29, 2017 14:47
Show Gist options
  • Save odeblic/22f0e25f0de0b90eacb973eeb3f5a805 to your computer and use it in GitHub Desktop.
Save odeblic/22f0e25f0de0b90eacb973eeb3f5a805 to your computer and use it in GitHub Desktop.
To be tested...
#include <stdio.h>
typedef struct
{
int a;
char b;
int c;
char d;
} s1;
typedef struct
{
int a;
int c;
char b;
char d;
} s2;
int main(int argc, char* argv[])
{
printf("Taille s1 : %d\n", sizeof(s1));
printf("Taille s2 : %d\n", sizeof(s2));
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment