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

SR:  6.6#1Checked automatically with code checker

Synopsis:Pointer to and from integer conversions shall not be used.
Language:C
Severity Level:2
Category:CONVERSIONS


Description:
Since such conversions involve implementation defined and undefined behaviour, it is safer to avoid their use.

Example:

int i;
int * ip;
i = (int) ip; /* WRONG */
ip = (int *) i; /* WRONG */