I created a structure which has 2 char arrays and 1 float variable. When trying to input data into the float variable the program crashes. On the output screen I can see the following error.
Following is the code:
scanf : floating point formats not linked
Abnormal program termination.
I am using Turbo C compiler. I cannot understand what I am doing wrong. Please help me.
#define NAME_LIMIT 100
#define TEAM_LIMIT 20
#define NO_OF_PLAYERS 10
typedef struct cricket cricket;
void getS(char , int);
printf("Please enter details of %d players:-",NO_OF_PLAYERS);
printf("\nPlayer Name: ");
void getS(char str, int max)
str[++i] = getche();
while(i<max-1 && str[i] != '\n' && str[i] != '\r');
str[++i] = '\0';