hi if i have a struct as given below-
Now this ob.name assignment gives an LValue required error.why?Code:struct a
{
char *name;
int i;
}ob;
main()
{
ob.name="xyz";
}
now a simple char ptr when assigned a string wont flag this right.
why then does it happen for a ptr inside a struct?
cheers!