CompuServe Messages

#Unions

    19-Dec-94 13:44:39
Sb: #44817-#Unions
Fm: Shraddhan 70374,754
To: Shraddhan 70374,754
A further question, related to the above, is how do I define, initialise and access an array of unions? I would like to have an array of double floats, but I need to initialise them as pairs of longs, for the sake of guaranteed precision to the last bit. How would C know to which element of the union I was referring? -i.e the pair of longs, or the double float? Regards, Shraddhan (via AP from Hertfordshire, England)