struct student{ int age; char name[20]; }stu1; wrong:stu1.name="XXXX"; right: strcpy(stu1.name,"XXXXXX");