Posts tagged ‘Data Types’

How To: Represent Numbers in Dec, Hex, and Oct

In C and C++, you can have 3 ways of write a number: a) decimal b) hexadecimal 3) octal


Windows comes with two types that represent a Boolean variable (TRUE or FALSE.) Both represent FALSE if 0 and TRUE if non-zero.

A Short Speech about Unions

A union is a memory location that is shared by two or more different types of variables. A union provides a way for interpreting the same bit pattern in two or more different ways (or forms.)

In fact, unions share structures lots of characteristics, like the way they defined and marshaled. It might be helpful to know that, like structures, unions can be defined inside a structure or even as a single entity. In addition, unions can define complex types inside, like structures too.