string contents into structure help
I have this problem where I want a persons name to be put into a structure. I have written the code like this but my compiler is telling me "Lvalue" is required. I dont know how to rectify this, can anyone tell me what I've done wrong?? Thanks in advance.
int main (void)
char name ;
printf("\nPlease enter the persons name: ");
name = person.name;