struct employee
{
char name[30];
char hiredate[10];
float salary;
};
employee empl;
--------------------------------------------------------------------------------
1) fwrite(&empl, sizeof(struct employee), 1, fptr); sizeof type
2) fwrite(&empl, sizeof(empl), 1, fptr); sizeof variable
Considering that name will be variable length,
is there going to be a difference which fwrite i use ?