Loading...
Loading...
Loading Curriculum...
Loading Subject...
Loading Topic...
Loading Lesson...
Loading Lab...
Parameters are variables defined in the function signature. Arguments are the actual values passed to those parameters when the function is called.
void greet(string name) { ... }Placeholders used in the function definition.
greet("Alice");Real values or variables passed during the call.
Separate multiple parameters with commas. The order and type of arguments must match the parameter list exactly.
void sum(int x, int y, double z);