Created
July 29, 2017 14:47
-
-
Save odeblic/22f0e25f0de0b90eacb973eeb3f5a805 to your computer and use it in GitHub Desktop.
To be tested...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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