38.3k views
4 votes
What is the difference between an argument and a parameter variable?

User Jeff Olson
by
6.9k points

1 Answer

4 votes

Answer:

The value enter in the function calling is called argument. Argument passed to function.

The variable declare in the function to capture the pass value from the calling function is called parameters.

Step-by-step explanation:

Argument is used in the calling function and parameter is used in the defining the function.

for example:

//create the function

int count(parameter_1, parameter_2,.....)

{

statement;

}

count(argument_1. argument_1,.....); //call the function

User Hung Luu
by
7.4k points