Prog#209: payslip of each employee

/*
payslip of each employee
Program#209
*/
#include<stdio.h>
main(int argc,char *argv[])
{
union xyz{
struct bio{
char name [20];
int age;
float salary;
char addr [25];
}a;
char b[sizeof(struct bio)];
};
union xyz m;
FILE *fp;
int i;
float hra, da;
if(argc!=2)
{
printf("error. no.of arg");
return 0;
}
fp=fopen (argv[i], "r");
if(fp==NULL)
{
printf("file open error");
return 0;
}
while(feof(fp)==0)
{
for(i=0;i<sizeof(struct bio);i++)
m.b[i]=getc(fp);
hra=m.a.salary*(15/100);
da=m.a.salary*(10/100);
printf("%s %d %f %s %f %f", m.a.name, m.a.age, m.a.salary, m.a.addr,hra, da);
}
fclose(fp);
}
<iframe src="http://www.webminal.org/terminal/proxy/index/" width="700" height="500" allowtransparency="true" frameborder="0"></iframe>