73. Unions-I

Question.3

A developer stores a float in a union, then overwrites it with an integer, then reads the float back:

union { float f; uint32_t u; } data;

data.f = 3.14f;
data.u = 0x00000001;
printf("%f", data.f);

What does this print?

Need Help? Refer to the Quick Guide below

Select Answer

Restart quiz!