This code is not running. i'm using gcc
#include<stdio.h>
int main()
{
struct book
{
char name[10];
float price;
int pages;
};
struct book b[5];
int i;
for (i=0; i<5; i++)
{
printf("Enter name, price and pages\n");
scanf("%c %f %d", &b[i].name, &b[i].price, &b[i].pages);
}
for (i=0; i<5; i++)
printf("%c %f %d\n", b[i].name, b[i].price, b[i].pages);
return 0;
}