What does the term "Argument" mean?

A special kind of variable, used to pass pieces of data from one piece of code (a program, subroutine or function) to another.

When an argument is used as part of that function, it is instead called a parameter.

For example, you have a piece of code that makes toast, it might have parameters that take people’s choice of colour, their desire for butter and their wish for jam. The choices available for such parameters are called called arguments.

Leave a Reply

Thank you for choosing to leave a comment. Comments may be moderated.