Why might this be: incompatible types in assignment
Here is my struct:
Here is the error:Code:typedef struct{ char name[250]; char number[10]; } List;
Code:char input[250]; List *new=(List *)malloc(sizeof(List)); printf("\n\nEnter Name: "); fgets(input, 250, stdin); if ((p = strchr(input, '\n')) != NULL) *p = '\0'; new->name=input; //<---------ERROR