Jump to content

C++ Language/ProgramFlow/Parameters

From Wikibooks, open books for an open world

When a function is defined, its definition can specify one or more "parameters". A parameter acts somewhat like a local variable, except that parameter's initial value comes from data that is "passed" in from the function-call statement.

  1. Default Parameter
  2. Unused Parameter
  3. Variable Number of Parameters