A "union declaration" specifies a set of variable values and, optionally, a tag naming the union. The variable values are called "members" of the union and can have different types. Unions are similar to "variant records" in other languages
A structure contains an ordered group of data objects. Unlike the elements of an array, the data objects within a structure can have varied data types. Each data object in a structure is a member or field.
Please refer this link too
http://www.java-samples.com/showtutorial.php?tutorialid=559
http://msdn.microsoft.com/en-us/library/y9zewe0d%28v=vs.80%29.aspx
Yugandhar, if this helps please login to Mark As Answer. |
Reply | Alert Moderator