Computer Science, asked by preetiarya3516, 5 months ago

what are argument in a function​

Answers

Answered by Anonymous
2

Parameters are the names of the information that we want to use in a function or procedure. The values passed in are called arguments.

For instance, we can create a procedure that draws a square - but for it to be useful we need to also be able to specify how large it should be.

The following example creates a procedure called 'square'. In the line where we define the name for this procedure, we have included a variable called 'distance' inside the brackets. Distance is a parameter - it allows us to pass a value into the procedure for it to use.

Similar questions