Simple Union Program C Programming Home » C Union » Simple Union Program #include #include union student { char name[10],city[20]; }s; void main() { printf("Simple Union Program\n\n") ; printf("\nEnter the Name : "); scanf("%s",s.name); printf("Enter the City : "); scanf("%s",s.city); printf("\n\nName=%s",s.name); printf("\n\nCity=%s",s.city); getch(); } Output is as : Read more » Tweet Share Share Share Share Related Post
ConversionConversion EmoticonEmoticon