Q12
What happens when you assign a value to one member of a union and then access another member in C?
A.
It's allowed and safe
B.
It leads to undefined behavior
AnswerC.
It raises a compilation error
D.
It swaps the values of both members
Answer: Option B
Solution
Answer: Option B
No explanation is given for this question Let's Discuss on Board