MIPI_AdvancedC_FRTK/Lect4/57.c

26 lines
372 B
C
Raw Permalink Normal View History

2024-11-14 08:45:50 +03:00
#include <stdio.h>
#include <string.h>
#include <sys/time.h>
// sizeof 16
struct st1{
int i;
char c;
int u;
char b;
};
// sizeof 12
struct st2{
int i;
int u;
char c;
char b;
};
int main(int argc, char **argv)
{
printf("sizeof(struct st1)=%lld sizeof(struct st2)=%lld\n", sizeof(struct st1),sizeof(struct st2));
return 0;
}