Parameters are the things defined by functions as input, arguments are the things passed as parameters.
void foo(int bar) { ... }
foo(baz);
In this example, bar
is a parameter for foo
. baz
is an argument passed to foo
.
Parameters are the things defined by functions as input, arguments are the things passed as parameters.
void foo(int bar) { ... }
foo(baz);
In this example, bar
is a parameter for foo
. baz
is an argument passed to foo
.