I have a C-program based on Structure as shown below;
but when I try to run It ;it is accepting "value for page" but
at time of accepting "value for price" it is giving me an error as:
"scanf: floating point not linked. Abnormal program termination"
what should I do to salve this problem ?
Code:
#include<stdio.h>
#include<conio.h>
struct book
{
int page;
float price;
}b[3];
void main()
{
clrscr();
printf("\nEnter pages & prices:\n");
for(int i=0;i<3;i++)
{
scanf("%d",&b[i].page);
scanf("%f",&b[i].price);
printf("\npages=%d price=%f\n",b[i].page,b[i].price);
}
}