C C++ JAVA
Monday, 23 February 2015
Union Program in C
#include<stdio.h>
#include<conio.h>
union UStud
{
int major;
int minor;
};
main()
{
union UStud Us;
clrscr();
Us.minor=18;
printf("\n Major
:%d",Us.major);
printf("\n Minor
:%d",Us.minor);
getch();
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment