结构体的使用,不知错误出在哪里?请各位帮个忙
#include <stdio.h>struct product
{
unsigned long no;
char name[15];
int num;
float price;
};
main()
{
struct product prod;
prod.no=117364;
prod.num=46;
prod.price=287.5;
scanf("%s,"prod.name);
printf("%lu,%s,%d,%f\n",prod.no,prod.name,prod.num,prod.price);
return 0;
}