5 Answered Questions

[SOLVED] Accessing inactive union member and undefined behavior?

4 Answered Questions

5 Answered Questions

[SOLVED] Unions and type-punning

15 Answered Questions

[SOLVED] Purpose of Unions in C and C++

6 Answered Questions

[SOLVED] Why does C++ disallow anonymous structs?

  • 2010-02-12 17:48:47
  • Adrian McCarthy
  • 55259 View
  • 91 Score
  • 6 Answer
  • Tags:   c++ struct unions

15 Answered Questions

[SOLVED] Difference between a Structure and a Union

  • 2008-12-06 17:56:45
  • gagneet
  • 352168 View
  • 413 Score
  • 15 Answer
  • Tags:   c struct unions

18 Answered Questions

[SOLVED] Why do we need C Unions?

  • 2008-10-31 03:51:40
  • ramu
  • 123444 View
  • 236 Score
  • 18 Answer
  • Tags:   c unions

6 Answered Questions

[SOLVED] C++ union in C#

  • 2008-09-24 12:20:32
  • Viktor Elofsson
  • 45860 View
  • 76 Score
  • 6 Answer
  • Tags:   c# c++ unions

8 Answered Questions

[SOLVED] sizeof a union in C/C++

  • 2009-04-11 18:27:19
  • Naveen
  • 61050 View
  • 42 Score
  • 8 Answer
  • Tags:   c++ c sizeof unions

10 Answered Questions

[SOLVED] How to compile C code with anonymous structs / unions?

6 Answered Questions

18 Answered Questions

[SOLVED] When would anyone use a union? Is it a remnant from the C-only days?

  • 2011-01-25 01:00:00
  • Russel
  • 73794 View
  • 133 Score
  • 18 Answer
  • Tags:   c++ c unions

7 Answered Questions

[SOLVED] gcc, strict-aliasing, and casting through a union

7 Answered Questions

[SOLVED] Anonymous union within struct not in c99?

3 Answered Questions

[SOLVED] Can a union be initialized in the declaration?

6 Answered Questions

6 Answered Questions

[SOLVED] Access struct members as if they are a single array?

2 Answered Questions

[SOLVED] C++11 anonymous union with non-trivial members

4 Answered Questions

[SOLVED] union for uint32_t and uint8_t[4] undefined behavior?

1 Answered Questions

[SOLVED] Union element alignment

  • 2009-05-21 05:14:06
  • Alex B
  • 10078 View
  • 21 Score
  • 1 Answer
  • Tags:   c alignment unions

3 Answered Questions

[SOLVED] How do boost::variant and boost::any work?

8 Answered Questions

[SOLVED] Examples of Union in C

  • 2009-04-07 08:15:16
  • claf
  • 54270 View
  • 33 Score
  • 8 Answer
  • Tags:   c unions

5 Answered Questions

[SOLVED] Is using an union in place of a cast well defined?

4 Answered Questions

[SOLVED] strict aliasing and alignment

1 Answered Questions

[SOLVED] Accessing same-type inactive member in unions

2 Answered Questions

[SOLVED] Padding in union is present or not

3 Answered Questions

[SOLVED] C++ unions vs. reinterpret_cast

3 Answered Questions

[SOLVED] Is a Union Member's Destructor Called

4 Answered Questions