基本数据类型验证
#include <stdio.h>
typedef int INT;
typedef unsigned char BYTE;
typedef struct Q
{
INT i;
BYTE TEMP1;
BYTE TEMP2;
short s;
}DEMO; //4+1+1+2
int main()
{
INT a;
BYTE b;
DEMO c;
printf("%d,%d\n", sizeof(INT), sizeof(a));
printf("%d,%d\n", sizeof(BYTE), sizeof(b));
printf("%d,%d\n", sizeof(DEMO), sizeof(c));
return 0;
}