boost learn study
Tuesday, April 1, 2014
Simple Union Program
Home
�
C Union
�
Simple Union Program
#include
#include
union student { char name[10],city[20]; } union student s; { printf("Enter the Student's Name and City"); scanf("%s%s",s.name,s.city); printf("Name=%s",s.name); printf("\n City=%s",s.city); getch(); }
Output is as :
Name=Bintu
City=Muktsar
Read more �
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment