I am new to C programming and have a question. It's a simple programme but dont know why it gives such a compilation error.
#include<stdio.h>
#include<conio.h>
struct Book
{
char book_name[20];
char auther[20];
int book_id;
};
void main()
{
struct Book b1;
clrscr();
b1.book_name="c++";
b1.auther="xyz";
/* Above two line show compile time error Lvalue required */
b1.book_id=1002;
printf("\n Book Name= %s",b1.book_name);
printf("\n Book Auther= %s",b1.auther);
printf("\n Book ID= %s",b1.book_id);
getch();
}