Unions are used frequently when specialized type conversions are needed because you can refer to the data held in the union in fundamentally different ways. For example, you might use a union to
manipulate the bytes that constitute a double in order to alter its precision or to perform some
unusual type of rounding.
No comments:
Post a Comment