Hi All,
1. How to acess the member name.
2. I am trying to fill the name with "Sanny". Vc++ IDE generates exception
on \return.
3. what is wrong with following assignment.
struct profile
{
int Rid;
char *name;
}emp;
int main()
{
printf("\n Enter the Rid and name");
scanf("%d",&emp .Rid);
scanf("%s",emp. name);
//puts(Danoop->name);
//gets(Danoop.nam e);
//printf("\n%s",D anoop.name);
return 0;
}
1. How to acess the member name.
2. I am trying to fill the name with "Sanny". Vc++ IDE generates exception
on \return.
3. what is wrong with following assignment.
struct profile
{
int Rid;
char *name;
}emp;
int main()
{
printf("\n Enter the Rid and name");
scanf("%d",&emp .Rid);
scanf("%s",emp. name);
//puts(Danoop->name);
//gets(Danoop.nam e);
//printf("\n%s",D anoop.name);
return 0;
}
Comment