answersLogoWhite

0

A union in C or C++ is like a structure, except that each element in the structure starts at the same memory address. It is useful for storing more than one type of data, but only one at a time, in the same memory location.

It can also be used for the potentially unsafe technique of looking at the bit patterns of one data type using another data type. (It is unsafe because internal memory organization of bits and bytes is an implementation specific thing, and depending on one particular organization can lead to incorrect program behavior.)

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

What do the initials CBF and CPP stand for?

CPP


When was CPP Group created?

CPP Group was created in 1980.


Are function prototypes necessary in C and Cpp?

Yes. Without prototypes you must ensure all definitions are declared forward of their usage. This isn't always possible. Separating the prototypes from the definitions means you can #include the prototypes forward of their usage, and place the actual definitions anywhere you like.


When was CPP Studios Event GmbH created?

CPP Studios Event GmbH was created in 1983.


CPP Program for Implementing Knuth-morris-pratt pattern matching algorithm?

what is the pure algorithm instead of cpp program?


What is CPP Studios Event GmbH's population?

The population of CPP Studios Event GmbH is 30.


When did CPP start?

I believe it was in 1967


How the c and cpp extension files can be retrived using FIND command in Linux?

find . -iname '*.c' -o -iname '*.cpp'


What is the history of cpp-npa-ndf?

Later then we know that ninoy aquino has been a big part in the creation of cpp/npa/ndf.


Is a military pension clawed back at 65 if you take cpp at age 60?

The Military Pension is clawed back at 65 whether or not you take CPP at any age or in fact even if you decide not to apply for CPP. It has to do with the amount of Military Pension contributions at the time when CPP was first brought about. In the wisdom of the political masters, it was felt that members could not afford to pay more pension per month on top of the CPP contributions. So expect to lose 25 to 30% of your current Military Pension at 65.


Can you receive cpp benefits before age 60?

Canada Pension Plan (CPP). No not unless you are disabled. Click on the below Related Link


What age can you start collecting CPP?

You can start collecting Canada Pension Plan (CPP) benefits as early as age 60. However, if you choose to take your CPP early, your monthly payments will be reduced. The standard age for receiving full CPP benefits is 65, and you can also choose to delay your benefits until age 70, which will increase your monthly payments.