rsk wrote:
you can use it by this way
s2 =&s1;
access the variables *i & j.and plz explain how?
for access i and j
for example
s1.j=5;
s1.i= &(s1.j);
printf("%d%d",s2->i,s2->j);
yes here to print the address of s1.j . am i right mark ?if no correct me.
I think on most systems, this will give you the address of s1.j in
decimal notation. But I'm not sure what will happen if sizeof(int) and
sizeof(int*) are not the same on a particular system.
I do believe the right way to do this would be:
printf("%p%d",(void*)s2->i,s2->j);
But I'm no expert in this field, so please correct me again if I'm wrong.
Mark
--
<<Remove the del for email>>