Get premium membership and access questions with answers, video lessons as well as revision papers.

Explain what an anonymous union is and how it differs from a normal union.

      

Explain what an anonymous union is and how it differs from a normal union.

  

Answers


Davis
An anonymous union is the systematic mechanism that allows two variables to share the same memory space.The members of an anonymous union are accessed directly, without reference to an object.They are at the same scope level as the union itself.

Githiari answered the question on May 12, 2018 at 16:27


Next: Use a C++ union class to swap the low- and high-order bytes of an integer (assuming 16-bit integer; if the computer uses 32-bit integers, swap...
Previous: Why might the following function not be in-lined by the computer' s compiler void f1() { int i; for(i=0; i<10; i++) cout <

View More
Computer Science Questions and Answers | Return to Questions Index


Learn High School English on YouTube

Related Questions