TICS Coding Standard Viewer 
TIOBE Software Quality Framework
Print-friendly version
©TIOBE Software www.tiobe.com
TIOBE - C Coding Standard

Guideline:  8.3#2Checked automatically with code checker

Synopsis:The concept of union whereby different kinds of data can be manipulated in a single area of storage is allowed only as the solution to certain kinds of problem but caution is urged in its use.
Severity Level:4

Although union is a well-defined concept, it is emphasized that it is the programmer's responsibility to keep track of which type is currently stored in a union as the results are implementation defined if something is stored as one type and extracted as another.