In this tutorial you will see how pointer is used with structure. This is a very important example because all data-structure program work on this principle.
struct record r,*p;
printf("\nEnter the name\n");
printf("\nEnter the roll no\n");
p=&r assign the address of object to p
*p allow the pointer to access the objects
*p.roll is same as p->roll like used in example.
Download this code
Posted on: April 29, 2010 If you enjoyed this post then why not add us on Google+? Add us to your Circles