Q. Which of the following is the correct way to define a union in C++?
β
Correct Answer: (A)
union MyUnion { int x; float y; };
Explanation: The correct way to define a union is 'union MyUnion { int x; float y; };'.