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

SR:  8.1#1Checked automatically with code checker

Synopsis:The address of an array declared with register is undefined and shall not be used.
Language:C
Severity Level:2
Category:DECLARATIONS


Description:
Both auto and register clutter up declarations if they are not required, and they do not add information to the code.

Example:

register int a[3];
int b;
...
b = a[1]; /* WRONG, implicitly takes address */