ProAnswers.org

how to declare union in C code?

A Union is like a structure, except that each element shares the common memory.

union sign /* A definition and a declaration */
{
int svar;
unsigned uvar;
} number;