title: How is a union different from a struct? Do other languages have similar constructs?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/346536/difference-between-a-structure-and-a-union-in-c">Difference between a Structure and a Union in C</a>  </p>
  </blockquote>
  
  <p>I see this code for a union in C:</p>
  
  <pre><code>    union time
      {
        long simpleDate;
        double perciseDate;
      } mytime;
  </code></pre>
  
  <p>What is the difference between a union and a structure in C? Where would you use a union, what are its benefits? Is there a similar construct in Java, C++ and/or Python?</p>