#include <stdio.h>
struct datatype1
{
char b;
int a;
char c;
}s1;
struct datatype2
{
char b;
short a;
char c;
}s2;
struct datatype3
{
char b;
char c;
int a;
}s3;
struct stu
{
int num;
char name[20];
char sex;
float score;
}s4;
struct date
{
int year;
int month;
int day;
}s5;
struct student
{
int num;
char name[20];
char sex;
struct date birth;
float score;
}s6;
int main()
{
/*****输出上述六种结构体类型所占字节数*****/
/********** Begin **********/
printf("1:%d\n", sizeof(s1));
printf("2:%d\n", sizeof(s2));
printf("3:%d\n", sizeof(s3));
printf("4:%d\n", sizeof(s4));
printf("5:%d\n", sizeof(s5));
printf("6:%d\n", sizeof(s6));
/********** End **********/
return 0;
}