i have create a student structure and when i am assigning name to the character array defined inside the structure then it is giving me an error "incompatible pointer to integer conversion assigning char to char [13]....can anyone expalins me the reason why this is happening?
int main()
{
typedef union {
int roll_no;
char name[30];
} student;
student student1;
student1.roll_no = 5;
student1.name[30] =
"shivam kumar"; // this is line where it is giving me error
printf("\n%d", student1.roll_no);
printf("\n%s", student1.name);
return 0;
}