...
Code Block | ||||
---|---|---|---|---|
| ||||
extern int name; void f(char *name); //* Declaration: no problem here */ //* ... */ void f(char *arg) { //* Definition: no problem, arg doesn't hide name */ //* use arg */ } |
Risk Assessment
Reusing a variable name in a subscope can lead to unintentionally referencing an incorrect variable.
...