2/2 What's the difference between formals and actuals? Aren't they all
the same (parameters)?
\_ void f(int x) { ... }
int main() { f(5); }
The formal parameter is x; the actual parameter is 5.
Some people (like the poster below) call formal parameters
"parameters", and actual parameters "arguments". Most
people don't care, and call them both "parameters", or
both "arguments".
\_ I believe parameter is the "box" that the argument goes into.
ie, arguments are values that are assigned to parameters. |