struct student
{
char name[20];
};
void main()
{
struct student *st[99];
st[5]=(struct student*)calloc(1, sizeof(struct student));
sprintf(st[5]->name, "xyz");
}
struct student
{
char name[20];
};
void main()
{
struct student st[99];
gets(st[5].name);
}
st[5]="xyz";