struct user{ char name[20]; char pass[20]; int isRegedit; int counts; }USER; //sizeof(USER)=48 struct user{ char *name; char *pass; int isRegedit; int counts; }USER; //sizeof(USER)=16