typedef union novel{ int count; double volume;}*P,*Q,T;P iim(){ static T t={625}; Q q=&t; return q;}void main(){ T *r; r=iim(); clrscr(); printf("%-d",r->count); getch();}Output:625typedef union employee{ char *name; int id;}EMP;EMP display(); void main(){ EMP list; list=display(); clrscr(); printf("%s ",list.name); getch();}EMP display(){
No comments:
Post a Comment