Variables, Misc

Variable scope

  • extern: Visible outside of the file in which it is declared. The variable must be defined in another file, or later in the same file
  • static (global): Not visible outside of the file in which it is declared
  • static (local): Retains its value in-between calls to the function