Here are a few questions to help you clarify your understanding of function arguments.
You won't use matching responses multiple times, and each blank should have only one response ...and note that there are more responses than blanks!
F | Actual | A | means you can't change the argument within the function |
---|---|---|---|
B | the argument listed in the function's header | ||
P | Value | C | means the argument must be a constant |
D | means a variable cannot be passed | ||
E | Reference | E | means the actual argument can be changed |
F | the argument listed in the function call | ||
A | const | G | I haven't got a clue |
H | means the argument is in a library | ||
B | Formal | J | means the argument is in a tuxedo |
M | means nothing in C++ | ||
M | Parametric | P | means the actual argument won't change, but the formal one may |
S | means the formal argument won't change, but the actual one may |
In terms of a function, what does input mean?
Value(s) given to a function by its caller during the function call process. Or: Value(s) known before a function is called, but necessary for the function to use in its processing. Such values are given to or sent to the function by the caller during the function call process. The actual arguments are listed between parentheses after the function's name in the call. The formal arguments are listed with their types between parentheses after the function's name in its head (seen both in the prototype and the definition). Formal arguments give names (and hopefully meaning) to the function's desired inputs. Actual arguments provide the values important to the caller for this particular call.
Ditto, but what does output then mean?
Value(s) produced by a function to give back to the caller.
The return mechanism can be used to send a single value back to the
caller of the function. They would then use this value in a
surrounding calculation, an assignment, or send it to cout for
display.
The reference mechanism can be used to give multiple values back to
the caller. It does this by granting the function write access to the
caller's memory locations. (Normally memory locations are visible
only to the individual function that created them.)
Do either of these have anything to do with the console (by definition...)?
NO!!! (Although a function's output may be displayed on the console, this is a use after the function has 'output' its result(s). And even though a function's input may have come from the console, this is a source before the data is 'input' to the function.)