1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18

  • A procedure definition contains the statements in the
    body of the procedure, the procedure is actually created
  • A variable definition allocates memory to store the
    variable value, the variable is actually created


Visibility and Storage Classes

  • A variable or procedure that is declared extern is not
    defined in the current file, its definition is in another file
    that will be loaded with the current file
  • A procedure is visible outside of the current file by
    default, that is you can call a procedure defined in another
    file
  • If a procedure is not declared in the current file, but is
    called by a procedure in the current file, C will provide a
    default declaration for the procedure, by default it
    returns an integer value
  • If a procedure is declared static, then its definition
    cannot be seen outside of the current file, a static
    procedure can only be called by the procedures that are
    defined in the current file - it is not seen outside of this
    file

March 3, 1998

Page 15

C201/TAM