the program takes name and salaryCode:#include<stdio.h> main() { struct employee { chat name[20]; float salary; }x[2]; int i; for(i=0;i<2;i++) { puts("enter name"); gets(x[i].name); puts("enter salary"); scanf("%f",&x[i].salary); } for(i=0;i<2;i++) { printf("%s\n%f",x[i].name,x[i].salary); } getch(); }
then it is showing the following error
plz helpCode:scanf : floating point formats not linked Abnormal program termination
thank you..