الأجوبة
/*Write a program in C to show the usage of pointer to structure*/
#include <stdio.h>
struct EmpAddress
{
char *ename;
char stname[20];
int pincode;
}
employee={"John Alter","Court Street \n",654134},*pt=&employee;
int main()
{
printf("\n\n Pointer : Show the usage of pointer to structure :\n");
printf("--------------------------------------------------------\n");
printf(" %s from %s \n\n",pt->ename,(*pt).stname);
return 0;
}