i couldnt understand how fseek(fp,-size,SEEK_CUR) helps to allocate the modified data
at the location where name are found to be same. it would be great help how fseek points to the location where
data is going to modified. -size if fseek logic of pointing to the location where to modify data
while(fread(&e,size,1,fp)==1)
{
if(strcmp(e.name,empname)==0){
printf("enter name age and salery\n");
scanf("%s%d%d",e.name,&e.age,&e.bs);
fseek(fp,-size,SEEK_CUR);
fwrite(&e,size,1,fp);
break;
}
}