StackOverflow Questions for Tag: unions

Einar Sundgren
Einar Sundgren

Reputation: 4433

When is a C union performed

Score: 2

Views: 164

Answers: 4

Read More
Konvt
Konvt

Reputation: 125

Is placement new in an union UB for SOO?

Score: -2

Views: 97

Answers: 1

Read More
iFreilicht
iFreilicht

Reputation: 14514

Narrowing string to string literal union

Score: 31

Views: 18641

Answers: 5

Read More
CodeGeneratorMKM
CodeGeneratorMKM

Reputation: 33

How is memory allocated in my union of double and bit-fields struct?

Score: 2

Views: 101

Answers: 1

Read More
Viktor Elofsson
Viktor Elofsson

Reputation: 1601

C++ union in C#

Score: 87

Views: 76178

Answers: 8

Read More
Nitesh
Nitesh

Reputation: 315

What is the difference between C unions and C++ unions?

Score: 3

Views: 493

Answers: 1

Read More
Alan_m
Alan_m

Reputation: 75

Anonymous union definition/declaration in a macro GNU vs VS2008

Score: 2

Views: 1945

Answers: 3

Read More
user2513351
user2513351

Reputation:

Implicitly changing the active union member between two members of the same primitive type

Score: 8

Views: 229

Answers: 1

Read More
vsoftco
vsoftco

Reputation: 56577

Unions in C++11: default constructor seems to be deleted

Score: 12

Views: 6626

Answers: 2

Read More
ThomasP66
ThomasP66

Reputation: 13

What are the prohibitions against certain kinds of aliasing through unions?

Score: 1

Views: 99

Answers: 2

Read More
ceving
ceving

Reputation: 23853

Best practice for unions in Go

Score: 20

Views: 20369

Answers: 5

Read More
ramu
ramu

Reputation:

Why do we need C Unions?

Score: 318

Views: 186489

Answers: 21

Read More
gkimsey
gkimsey

Reputation: 547

Get sizeof anonymous struct inside union

Score: 6

Views: 3043

Answers: 5

Read More
Steve
Steve

Reputation: 859

How to initialize an array of structs containing union in C++11?

Score: 0

Views: 56

Answers: 1

Read More
Martin
Martin

Reputation: 1521

Anonymous union within struct not in c99?

Score: 55

Views: 48025

Answers: 7

Read More
Naveen Singh
Naveen Singh

Reputation: 1

Reason of difference output, different compiler for below code in C/C++:

Score: 0

Views: 63

Answers: 0

Read More
Steve
Steve

Reputation: 859

How to initialize an array of structs containing union in C++?

Score: 1

Views: 85

Answers: 1

Read More
gagneet
gagneet

Reputation: 37339

Difference between a Structure and a Union

Score: 472

Views: 403309

Answers: 18

Read More
Toby Speight
Toby Speight

Reputation: 30933

Is it legal to std::memmove() from one union member to another?

Score: 6

Views: 208

Answers: 1

Read More
hongyu xiao
hongyu xiao

Reputation: 239

LARGE_INTEGER and DUMMYSTRUCTNAME

Score: 5

Views: 1180

Answers: 2

Read More
PreviousPage 1Next