This section contains Union topics.
Name |
Description |
Union types are derived types sharing many of the syntactic and functional features of structure types. The key difference is that a union allows only one of its members to be "active" at any one time. The size of a union is the size of its largest member. The value of only one of its members can be stored at any time. In the following simple case, | |
A union that does not have a tag and is not used to declare a named object (or other type) is called an anonymous union. It has the following form: | |
The general declaration syntax for unions is similar to that for structures. The differences are:
|
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|