Saturday, May 10, 2008

Union(Initialization of Union variable )

Initialization of Union variable



A union variable can be initialized , provided its storage class is either external or static.
Only one member of a union can be assigned a value at any one time.
The initialization value is assigned to the first member within the union.
An example program to demonstrate initialization of union variables:

0 comments:

Copyright

Copyright © 2008 C Tutorial, All rights are reserved