Parameters

  • A function’s parameters are declared just like ordinary variables, but in a comma separated list inside the parentheses.
  • The parameter names are only valid inside the function (local to the function).
  • The list may mix different data types.
  • Parameters of the same type must be declared separately (as separation using commas will not work here).
  • If no parameters are required, use the keyword void in place of the parameter list when defining the function.