Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
bgColor#ccccff
langc
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.

...