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

SR:  11.1#1Checked automatically with code checker

Synopsis:Identifiers shall not be redeclared within nested scopes.
Language:C
Severity Level:2
Category:SCOPE AND LINKAGE


Description:
Such practice is almost always done inadvertently and has dangerous implications for readability.

Example:

int i;
int f()
{
    int i; /* WRONG - hides earlier declaration */
}