why once i run the programmeCode:#include <stdio.h> #include <malloc.h> struct student { float score; }; main() { struct student *p; p=(struct student *)malloc(sizeof(struct student)); scanf("%f",&(p->score)); /* or instead of "scanf("%f",&(*p).score);" */ printf("%f\n",(*p).score); }
It will display :
scanf : floating point formats not linked
Abnormal program termination
can you tell me why ???waiting............